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.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
EXTRA_PARAM_CHILD_DIRECTED |
static String |
EXTRA_PARAM_KEY_ACCOUNT_ID |
static String |
EXTRA_PARAM_KEY_DEVELOPER_ID |
static String |
EXTRA_PARAM_KEY_OLD_SKUS |
static String |
EXTRA_PARAM_KEY_REPLACE_SKUS_PRORATION_MODE |
static String |
EXTRA_PARAM_KEY_RSKU |
static String |
EXTRA_PARAM_KEY_VR |
static String |
EXTRA_PARAM_UNDER_AGE_OF_CONSENT |
| 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 |
getDeveloperId()
Returns an optional obfuscated string of the developer profile name.
|
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.
|
static BillingFlowParams.Builder |
newBuilder()
Constructs a new
BillingFlowParams.Builder instance. |
public static final String EXTRA_PARAM_KEY_ACCOUNT_ID
public static final String EXTRA_PARAM_KEY_REPLACE_SKUS_PRORATION_MODE
public static final String EXTRA_PARAM_KEY_VR
public static final String EXTRA_PARAM_KEY_RSKU
public static final String EXTRA_PARAM_CHILD_DIRECTED
public static final String EXTRA_PARAM_UNDER_AGE_OF_CONSENT
public static final String EXTRA_PARAM_KEY_OLD_SKUS
public static final String EXTRA_PARAM_KEY_DEVELOPER_ID
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 String getDeveloperId()
public static BillingFlowParams.Builder newBuilder()
BillingFlowParams.Builder instance.