public / com.revenuecat.purchases / Offering

Offering

data class Offering : Parcelable

An offering is a collection of Package available for the user to purchase. For more info see https://docs.revenuecat.com/docs/entitlements

Constructors

<init>

An offering is a collection of Package available for the user to purchase. For more info see https://docs.revenuecat.com/docs/entitlements

Offering(identifier: String, serverDescription: String, availablePackages: List<Package>)

Properties

annual

Annual package type configured in the RevenueCat dashboard, if available.

val annual: Package?

availablePackages

Array of Package objects available for purchase.

val availablePackages: List<Package>

identifier

Unique identifier defined in RevenueCat dashboard.

val identifier: String

lifetime

Lifetime package type configured in the RevenueCat dashboard, if available.

val lifetime: Package?

monthly

Monthly package type configured in the RevenueCat dashboard, if available.

val monthly: Package?

serverDescription

Offering description defined in RevenueCat dashboard.

val serverDescription: String

sixMonth

Six month package type configured in the RevenueCat dashboard, if available.

val sixMonth: Package?

threeMonth

Three month package type configured in the RevenueCat dashboard, if available.

val threeMonth: Package?

twoMonth

Two month package type configured in the RevenueCat dashboard, if available.

val twoMonth: Package?

weekly

Weekly package type configured in the RevenueCat dashboard, if available.

val weekly: Package?

Functions

get

Retrieves a specific package by identifier, use this to access custom package types configured in the RevenueCat dashboard. Equivalent to calling getPackage.

operator fun get(s: String): Package

getPackage

Retrieves a specific package by identifier, use this to access custom package types configured in the RevenueCat dashboard.

fun getPackage(identifier: String): Package