State

enum State : Enum<Premium.State>

Define the possible states when checking if a user has premium privileges in the app.

Parameters

id

Numeric id of the state.

Entries

Link copied to clipboard

User does not have premium privileges. This indicates that the user has never purchased a premium version of the app, so should be denied access to premium features.

Link copied to clipboard

User has premium privileges. This indicates that at some point the user have already paid for the purchase of a premium version of the app, so should be granted access to premium features.

Link copied to clipboard

Indicates that the user has started the process of purchasing a premium version of the app, but the purchase has not yet been completed. In this case, access to premium features should be denied until the transaction status changes, whether it is completed or canceled.

Properties

Link copied to clipboard
val id: Int
Link copied to clipboard
val name: String
Link copied to clipboard
val ordinal: Int