EntitlementInfo

class EntitlementInfo(val identifier: String, val isActive: Boolean, val willRenew: Boolean, val periodType: PeriodType, val latestPurchaseDateMillis: Long?, val originalPurchaseDateMillis: Long?, val expirationDateMillis: Long?, val store: Store, val productIdentifier: String, val productPlanIdentifier: String?, val isSandbox: Boolean, val unsubscribeDetectedAtMillis: Long?, val billingIssueDetectedAtMillis: Long?, val ownershipType: OwnershipType, val verification: VerificationResult)

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

Constructors

Link copied to clipboard
constructor(identifier: String, isActive: Boolean, willRenew: Boolean, periodType: PeriodType, latestPurchaseDateMillis: Long?, originalPurchaseDateMillis: Long?, expirationDateMillis: Long?, store: Store, productIdentifier: String, productPlanIdentifier: String?, isSandbox: Boolean, unsubscribeDetectedAtMillis: Long?, billingIssueDetectedAtMillis: Long?, ownershipType: OwnershipType, verification: VerificationResult)

Properties

Link copied to clipboard

The date a billing issue was detected in millis since the Unix epoch. Can be null if there is no billing issue or an issue has been resolved. Note: Entitlement may still be active even if there is a billing issue. Check the isActive property.

Link copied to clipboard

The expiration date for the entitlement, can be null for lifetime access. If the periodType is PeriodType.TRIAL, this is the trial expiration date.

Link copied to clipboard

The entitlement identifier configured in the RevenueCat dashboard.

Link copied to clipboard

True if the user has access to this entitlement.

Link copied to clipboard

False if this entitlement is unlocked via a production purchase.

Link copied to clipboard

Nullable on iOS only not on Android. The latest purchase or renewal date for the entitlement, in millis since the Unix epoch.

Link copied to clipboard

Nullable on iOS only not on Android. The first date this entitlement was purchased in millis since the Unix epoch.

Link copied to clipboard
Link copied to clipboard

The last period type this entitlement was in.

Link copied to clipboard

The product identifier that unlocked this entitlement.

Link copied to clipboard

Play Store only. The base plan identifier that unlocked this entitlement.

Link copied to clipboard

The store where this entitlement was unlocked from.

Link copied to clipboard

The date an unsubscribe was detected. Can be null.

Link copied to clipboard

If entitlement verification was enabled, the result of that verification. If not, VerificationResult.NOT_REQUESTED.

Link copied to clipboard

True if the underlying subscription is set to renew at the end of the billing period (expirationDate). Will always be True if entitlement is for lifetime access.