EntitlementInfo

class EntitlementInfo(identifier: String, isActive: Boolean, willRenew: Boolean, periodType: PeriodType, latestPurchaseDate: Date, originalPurchaseDate: Date, expirationDate: Date?, store: Store, productIdentifier: String, isSandbox: Boolean, unsubscribeDetectedAt: Date?, billingIssueDetectedAt: Date?) : Parcelable

This object gives you access to all of the information about the status of a user's entitlements.

Constructors

EntitlementInfo
Link copied to clipboard
fun EntitlementInfo(identifier: String, isActive: Boolean, willRenew: Boolean, periodType: PeriodType, latestPurchaseDate: Date, originalPurchaseDate: Date, expirationDate: Date?, store: Store, productIdentifier: String, isSandbox: Boolean, unsubscribeDetectedAt: Date?, billingIssueDetectedAt: Date?)

Functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
hashCode
Link copied to clipboard
open override fun hashCode(): Int
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

billingIssueDetectedAt
Link copied to clipboard
val billingIssueDetectedAt: Date?
The date a billing issue was detected.
expirationDate
Link copied to clipboard
val expirationDate: Date?
The expiration date for the entitlement, can be null for lifetime access.
identifier
Link copied to clipboard
val identifier: String
The entitlement identifier configured in the RevenueCat dashboard.
isActive
Link copied to clipboard
val isActive: Boolean
True if the user has access to this entitlement.
isSandbox
Link copied to clipboard
val isSandbox: Boolean
False if this entitlement is unlocked via a production purchase.
latestPurchaseDate
Link copied to clipboard
val latestPurchaseDate: Date
The latest purchase or renewal date for the entitlement.
originalPurchaseDate
Link copied to clipboard
val originalPurchaseDate: Date
The first date this entitlement was purchased.
periodType
Link copied to clipboard
val periodType: PeriodType
The last period type this entitlement was in Either: NORMAL, INTRO or TRIAL.
productIdentifier
Link copied to clipboard
val productIdentifier: String
The product identifier that unlocked this entitlement.
store
Link copied to clipboard
val store: Store
The store where this entitlement was unlocked from.
unsubscribeDetectedAt
Link copied to clipboard
val unsubscribeDetectedAt: Date?
The date an unsubscribe was detected.
willRenew
Link copied to clipboard
val willRenew: Boolean
True if the underlying subscription is set to renew at the end of the billing period (expirationDate).