public class BillingFlowParams extends Object
BillingClient.launchBillingFlow(android.app.Activity, com.android.billingclient.api.BillingFlowParams)).| Modifier and Type | Class and Description |
|---|---|
static class |
BillingFlowParams.Builder
Helps to construct
BillingFlowParams that are used to initiate a purchase flow. |
static interface |
BillingFlowParams.ProrationMode
Replace SKU ProrationMode.
|
| Constructor and Description |
|---|
BillingFlowParams() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccountId()
Returns an optional obfuscated string that is uniquely associated with the user's account.
|
String |
getOldSku()
Returns the SKU that the user is upgrading or downgrading from.
|
ArrayList<String> |
getOldSkus()
Deprecated.
Use
getOldSku() instead. |
int |
getReplaceSkusProrationMode()
Returns an optional integer that indicates the Replace SKU ProrationMode.
|
String |
getSku()
Returns the SKU that is being purchased or upgraded/downgraded to as published in the Google
Developer console.
|
SkuDetails |
getSkuDetails()
Returns the full sku details for this purchase.
|
String |
getSkuType()
Returns the billing type
BillingClient.SkuType of the item being purchased. |
boolean |
getVrPurchaseFlow()
Returns an optional flag indicating whether you wish to launch a VR purchase flow.
|
boolean |
hasExtraParams()
Returns whether it has an optional params for a custom purchase flow.
|
static BillingFlowParams.Builder |
newBuilder()
Constructs a new
BillingFlowParams.Builder instance. |
public String getSku()
public String getSkuType()
BillingClient.SkuType of the item being purchased.public SkuDetails getSkuDetails()
@Deprecated public ArrayList<String> getOldSkus()
getOldSku() instead.public String getOldSku()
public String getAccountId()
public boolean getVrPurchaseFlow()
public int getReplaceSkusProrationMode()
public boolean hasExtraParams()
public static BillingFlowParams.Builder newBuilder()
BillingFlowParams.Builder instance.