AlternativeChoiceDetails
public
final
class
AlternativeChoiceDetails
extends Object
java.lang.Object | |
↳ | com.android.billingclient.api.AlternativeChoiceDetails |
This class is deprecated.
Use BillingClient.Builder.enableUserChoiceBilling(UserChoiceBillingListener)
with UserChoiceBillingListener
and UserChoiceDetails
in the listener callback instead.
Details related to a user's choice of alternative billing.
Summary
Nested classes | |
---|---|
class |
AlternativeChoiceDetails.Product
Details about a product being purchased. |
Public methods | |
---|---|
String
|
getExternalTransactionToken()
Returns a token that represents the user's prospective purchase via alternative billing. |
String
|
getOriginalExternalTransactionId()
Returns the external transaction Id of the originating subscription, if the purchase is a subscription upgrade/downgrade. |
List<AlternativeChoiceDetails.Product>
|
getProducts()
Returns a list of |
Inherited methods | |
---|---|
Public methods
getExternalTransactionToken
public String getExternalTransactionToken ()
Returns a token that represents the user's prospective purchase via 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<AlternativeChoiceDetails.Product> getProducts ()
Returns a list of AlternativeChoiceDetails.Product
to be purchased in the alternative billing flow.
Returns | |
---|---|
List<AlternativeChoiceDetails.Product> |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-11-14 UTC.