purchases / com.revenuecat.purchases / Entitlement

Entitlement

class Entitlement : Parcelable

An entitlement represents features or content that a user is "entitled" to. Entitlements are unlocked by having an active subscription or making a one-time purchase. Many different products can unlock. Most subscription apps only have one entitlement, unlocking all premium features. However, if you had two tiers of content such as premium and premium_plus, you would have 2 entitlements. A common and simple setup example is one entitlement with identifier pro, one offering monthly, with one product. See this link for more info

Types

CREATOR

companion object CREATOR : Creator<Entitlement>

Constructors

<init>

Entitlement(parcel: Parcel)

Properties

offerings

val offerings: Map<String, Offering>

Map of offering objects by name

Functions

describeContents

fun describeContents(): Int

toString

fun toString(): String

writeToParcel

fun writeToParcel(parcel: Parcel, flags: Int): Unit

Companion Object Functions

createFromParcel

fun createFromParcel(parcel: Parcel): Entitlement

newArray

fun newArray(size: Int): Array<Entitlement?>