UserChoiceDetails

public final class UserChoiceDetails
extends Object

java.lang.Object
   ↳ com.android.billingclient.api.UserChoiceDetails


Details related to a user's choice of alternative billing.

Summary

Nested classes

class UserChoiceDetails.Product

Details about a product being purchased. 

Public methods

String getExternalTransactionToken()

Returns a token that represents the user's prospective purchase via user choice alternative billing.

String getOriginalExternalTransactionId()

Returns the external transaction Id of the originating subscription, if the purchase is a subscription upgrade/downgrade.

List<UserChoiceDetails.Product> getProducts()

Returns a list of UserChoiceDetails.Product to be purchased in the user choice alternative billing flow.

Inherited methods

Public methods

getExternalTransactionToken

public String getExternalTransactionToken ()

Returns a token that represents the user's prospective purchase via user choice alternative billing.

Returns
String

getOriginalExternalTransactionId

public String getOriginalExternalTransactionId ()

Returns the external transaction Id of the originating subscription, if the purchase is a subscription upgrade/downgrade.

Returns
String

getProducts

public List<UserChoiceDetails.Product> getProducts ()

Returns a list of UserChoiceDetails.Product to be purchased in the user choice alternative billing flow.

Returns
List<UserChoiceDetails.Product>