# Print output for @column tags ?>
public
class
BillingFlowParams
extends Object
| java.lang.Object | |
| ↳ | com.android.billingclient.api.BillingFlowParams |
Parameters to initiate a purchase flow. See BillingClient.launchBillingFlow(Activity, BillingFlowParams).
Nested classes | |
|---|---|
class |
BillingFlowParams.Builder
Helps to construct |
@interface |
BillingFlowParams.ProrationMode
Replace SKU ProrationMode. |
Constants | |
|---|---|
String |
EXTRA_PARAM_KEY_ACCOUNT_ID
|
String |
EXTRA_PARAM_KEY_OLD_SKUS
|
String |
EXTRA_PARAM_KEY_OLD_SKU_PURCHASE_TOKEN
|
String |
EXTRA_PARAM_KEY_REPLACE_SKUS_PRORATION_MODE
|
String |
EXTRA_PARAM_KEY_VR
|
Public methods | |
|---|---|
String
|
getOldSku()
Returns the SKU that the user is upgrading or downgrading from |
String
|
getOldSkuPurchaseToken()
Returns the purchase token of the SKU the user is upgrading or downgrading from. |
int
|
getReplaceSkusProrationMode()
Returns one of |
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 |
boolean
|
getVrPurchaseFlow()
Returns whether to launch a VR purchase flow. |
static
BillingFlowParams.Builder
|
newBuilder()
Constructs a new |
Inherited methods | |
|---|---|
public static final String EXTRA_PARAM_KEY_ACCOUNT_ID
Constant Value: "accountId"
public static final String EXTRA_PARAM_KEY_OLD_SKUS
Constant Value: "skusToReplace"
public static final String EXTRA_PARAM_KEY_OLD_SKU_PURCHASE_TOKEN
Constant Value: "oldSkuPurchaseToken"
public static final String EXTRA_PARAM_KEY_REPLACE_SKUS_PRORATION_MODE
Constant Value: "prorationMode"
public String getOldSku ()
Returns the SKU that the user is upgrading or downgrading from
| Returns | |
|---|---|
String |
|
public String getOldSkuPurchaseToken ()
Returns the purchase token of the SKU the user is upgrading or downgrading from.
| Returns | |
|---|---|
String |
|
public int getReplaceSkusProrationMode ()
Returns one of BillingFlowParams.ProrationMode indicating the proration mode for SKU replacement.
| Returns | |
|---|---|
int |
|
public String getSku ()
Returns the SKU that is being purchased or upgraded/downgraded to as published in the Google Developer console.
| Returns | |
|---|---|
String |
|
public SkuDetails getSkuDetails ()
Returns the full SKU details for this purchase.
| Returns | |
|---|---|
SkuDetails |
|
public String getSkuType ()
Returns the BillingClient.SkuType of the item being purchased.
| Returns | |
|---|---|
String |
|
public boolean getVrPurchaseFlow ()
Returns whether to launch a VR purchase flow.
| Returns | |
|---|---|
boolean |
|
public static BillingFlowParams.Builder newBuilder ()
Constructs a new BillingFlowParams.Builder instance.
| Returns | |
|---|---|
BillingFlowParams.Builder |
|