enum value represents the possible types of a horizon.platform.iap.models.Product, which is an item purchased in the application. An In-app purchase (IAP) add-on can be durable, consuable, or a subscription.| Name | Summary |
|---|---|
@SerialName(value = "DURABLE") Durable This product is a durable IAP item that can be consumed multiple times. It can be purchased only once. | |
@SerialName(value = "CONSUMABLE") Consumable This product is an IAP item that can be consumed only once. It can only be purchased again after it is consumed. | |
@SerialName(value = "SUBSCRIPTION") Subscription This product represents a subscription. Subscriptions provide a way for users to purchase your app or its premium content by way of a recurring payment model. |
| Name | Summary |
|---|---|
valueOf | fun valueOf(value: String): ProductType Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.) |
values | fun values(): Array<ProductType> Returns an array containing the constants of this enum type, in the order they’re declared. |