Offerings

class Offerings(val all: Map<String, Offering>, val current: Offering?, getCurrentOfferingForPlacement: (placementId: String) -> Offering?)

This class contains all the offerings configured in RevenueCat dashboard. For more info see https://docs.revenuecat.com/docs/entitlements

Constructors

Link copied to clipboard
constructor(all: Map<String, Offering>, current: Offering?)
constructor(all: Map<String, Offering>, current: Offering?, getCurrentOfferingForPlacement: (placementId: String) -> Offering?)

Properties

Link copied to clipboard

Dictionary of all Offerings Offering objects keyed by their identifier.

Link copied to clipboard

Current offering configured in the RevenueCat dashboard.

Functions

Link copied to clipboard
operator fun get(identifier: String): Offering?

Retrieves an specific offering by its identifier. It's equivalent to calling getOffering(identifier)

Link copied to clipboard

Retrieves a specific offering by placement identifier. For more info see the RevenueCat docs.

Link copied to clipboard
fun getOffering(identifier: String): Offering?

Retrieves an specific offering by its identifier.