EntitlementsState

data class EntitlementsState(val status: SubscriptionStatus = SubscriptionStatus.Unknown, val entitlementsByProduct: Map<String, Set<Entitlement>> = emptyMap(), val activeDeviceEntitlements: Set<Entitlement> = emptySet(), val backingActive: Set<Entitlement> = emptySet(), val webEntitlements: Set<Entitlement> = emptySet(), val allTracked: Set<Entitlement> = emptySet())(source)

Constructors

Link copied to clipboard
constructor(status: SubscriptionStatus = SubscriptionStatus.Unknown, entitlementsByProduct: Map<String, Set<Entitlement>> = emptyMap(), activeDeviceEntitlements: Set<Entitlement> = emptySet(), backingActive: Set<Entitlement> = emptySet(), webEntitlements: Set<Entitlement> = emptySet(), allTracked: Set<Entitlement> = emptySet())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Tracks all entitlements seen from status updates.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Active web entitlements from the latest redemption response.

Functions

Link copied to clipboard