BillingFlowParams

public class BillingFlowParams
extends Object

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


Parameters to initiate a purchase flow. See BillingClient.launchBillingFlow(Activity, BillingFlowParams).

Summary

Nested classes

class BillingFlowParams.Builder

Helps to construct BillingFlowParams that are used to initiate a purchase flow. 

@interface BillingFlowParams.ProrationMode

Replace SKU ProrationMode. 

class BillingFlowParams.SubscriptionUpdateParams

Params that describe a subscription update. 

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

boolean getVrPurchaseFlow()

Returns whether to launch a VR purchase flow.

static BillingFlowParams.Builder newBuilder()

Constructs a new BillingFlowParams.Builder instance.

Inherited methods

Constants

EXTRA_PARAM_KEY_ACCOUNT_ID

public static final String EXTRA_PARAM_KEY_ACCOUNT_ID

Constant Value: "accountId"

EXTRA_PARAM_KEY_OLD_SKUS

public static final String EXTRA_PARAM_KEY_OLD_SKUS

Constant Value: "skusToReplace"

EXTRA_PARAM_KEY_OLD_SKU_PURCHASE_TOKEN

public static final String EXTRA_PARAM_KEY_OLD_SKU_PURCHASE_TOKEN

Constant Value: "oldSkuPurchaseToken"

EXTRA_PARAM_KEY_REPLACE_SKUS_PRORATION_MODE

public static final String EXTRA_PARAM_KEY_REPLACE_SKUS_PRORATION_MODE

Constant Value: "prorationMode"

EXTRA_PARAM_KEY_VR

public static final String EXTRA_PARAM_KEY_VR

Constant Value: "vr"

Public methods

getVrPurchaseFlow

public boolean getVrPurchaseFlow ()

Returns whether to launch a VR purchase flow.

Returns
boolean

newBuilder

public static BillingFlowParams.Builder newBuilder ()

Constructs a new BillingFlowParams.Builder instance.

Returns
BillingFlowParams.Builder