SubscriptionStatus

@Serializable
sealed class SubscriptionStatus(source)

Represents the status of user's subscriptions and entitlements.

This sealed class has three possible states:

  • Unknown: The initial state before any subuscription status is determined

  • Inactive: When the user has no active entitlements

  • Active: When the user has one or more active entitlements

Inheritors

Types

Link copied to clipboard
@Serializable
data class Active(val entitlements: Set<Entitlement>) : SubscriptionStatus

Represents an active entitlement status. This state indicates the user has one or more active entitlements.

Link copied to clipboard
@Serializable
object Inactive : SubscriptionStatus

Represents an inactive entitlement status. This state indicates the user has no active entitlements.

Link copied to clipboard
@Serializable
object Unknown : SubscriptionStatus

Represents an unknown entitlement status. This is the initial state before any entitlement status is determined.

Properties

Link copied to clipboard