BillingFlowParams

public class BillingFlowParams
extends Object

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


Parameters to initiate a purchase flow. (See 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. 

Public constructors

BillingFlowParams()

Public methods

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()

This method is 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.

Inherited methods

From class java.lang.Object

Public constructors

BillingFlowParams

BillingFlowParams ()

Public methods

getAccountId

String getAccountId ()

Returns an optional obfuscated string that is uniquely associated with the user's account.

Returns
String

getOldSku

String getOldSku ()

Returns the SKU that the user is upgrading or downgrading from.

Returns
String

getOldSkus

ArrayList<String> getOldSkus ()

This method is deprecated.
Use getOldSku() instead.

Returns the SKU(s) that the user is upgrading or downgrading from.

Returns
ArrayList<String>

getReplaceSkusProrationMode

int getReplaceSkusProrationMode ()

Returns an optional integer that indicates the Replace SKU ProrationMode.

Returns
int

getSku

String getSku ()

Returns the SKU that is being purchased or upgraded/downgraded to as published in the Google Developer console.

Returns
String

getSkuDetails

SkuDetails getSkuDetails ()

Returns the full sku details for this purchase.

Returns
SkuDetails

getSkuType

String getSkuType ()

Returns the billing type BillingClient.SkuType of the item being purchased.

Returns
String

getVrPurchaseFlow

boolean getVrPurchaseFlow ()

Returns an optional flag indicating whether you wish to launch a VR purchase flow.

Returns
boolean

hasExtraParams

boolean hasExtraParams ()

Returns whether it has an optional params for a custom purchase flow.

Returns
boolean

newBuilder

BillingFlowParams.Builder newBuilder ()

Constructs a new BillingFlowParams.Builder instance.

Returns
BillingFlowParams.Builder