API reference

UserChoiceDetails Class

Modifiers: final
Details related to a user's choice of alternative billing.
The equivalent Google Play Billing Library class can be found at the Android developer documentation for UserChoiceDetails.

Signature

data class UserChoiceDetails(val externalTransactionId: String, val originalExternalTransactionId: String, val products: List<UserChoiceDetails.Product>)

Constructors

UserChoiceDetails ( externalTransactionId , originalExternalTransactionId , products )
Signature
constructor(externalTransactionId: String, originalExternalTransactionId: String, products: List<UserChoiceDetails.Product>)
Parameters
externalTransactionId: String
  A token that represents the user's prospective purchase via user choice alternative billing.
originalExternalTransactionId: String
  The external transaction Id of the originating subscription, if the purchase is a subscription upgrade/downgrade.
products: List
  A list of UserChoiceDetails.Product to be purchased in the user choice alternative billing flow.

Properties

externalTransactionId : String
[Get]
A token that represents the user's prospective purchase via user choice alternative billing.
Signature
val externalTransactionId: String
originalExternalTransactionId : String
[Get]
The external transaction Id of the originating subscription, if the purchase is a subscription upgrade/downgrade.
Signature
val originalExternalTransactionId: String
products : List
[Get]
A list of UserChoiceDetails.Product to be purchased in the user choice alternative billing flow.
Signature
val products: List<UserChoiceDetails.Product>

Inner Class

Product Class

Modifiers: final

Signature

data class Product(val id: String, val offerToken: String, val type: String)

Constructors

Product ( id , offerToken , type )
Signature
constructor(id: String, offerToken: String, type: String)
Parameters
id: String
offerToken: String
type: String
Returns
UserChoiceDetails.Product

Properties

id : String
[Get]
The id of the product being purchased.
Signature
val id: String
offerToken : String
[Get]
Offer token that was passed in BillingClient.launchBillingFlow to purchase the product.
Signature
val offerToken: String
type : String
[Get]
The BillingClient.ProductType of the product being purchased.
Signature
val type: String
Did you find this page helpful?