Offering

data class Offering(identifier: String, serverDescription: String, availablePackages: List<Package>) : 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

Offering
Link copied to clipboard
fun Offering(identifier: String, serverDescription: String, availablePackages: List<Package>)

Functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
get
Link copied to clipboard
operator fun get(s: String): Package
Retrieves a specific package by identifier, use this to access custom package types configured in the RevenueCat dashboard.
getPackage
Link copied to clipboard
fun getPackage(identifier: String): Package
Retrieves a specific package by identifier, use this to access custom package types configured in the RevenueCat dashboard
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

annual
Link copied to clipboard
val annual: Package?
Annual package type configured in the RevenueCat dashboard, if available.
availablePackages
Link copied to clipboard
val availablePackages: List<Package>
Array of Package objects available for purchase.
identifier
Link copied to clipboard
val identifier: String
Unique identifier defined in RevenueCat dashboard.
lifetime
Link copied to clipboard
val lifetime: Package?
Lifetime package type configured in the RevenueCat dashboard, if available.
monthly
Link copied to clipboard
val monthly: Package?
Monthly package type configured in the RevenueCat dashboard, if available.
serverDescription
Link copied to clipboard
val serverDescription: String
Offering description defined in RevenueCat dashboard.
sixMonth
Link copied to clipboard
val sixMonth: Package?
Six month package type configured in the RevenueCat dashboard, if available.
threeMonth
Link copied to clipboard
val threeMonth: Package?
Three month package type configured in the RevenueCat dashboard, if available.
twoMonth
Link copied to clipboard
val twoMonth: Package?
Two month package type configured in the RevenueCat dashboard, if available.
weekly
Link copied to clipboard
val weekly: Package?
Weekly package type configured in the RevenueCat dashboard, if available.