Skip to content

Most visited

Recently visited

navigation

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. 

Public constructors

BillingFlowParams()

Public methods

String getAccountId()

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

ArrayList<String> getOldSkus()

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

boolean getReplaceSkusProration()

Returns whether the user should be credited for any unused subscription time on the SKUs they are upgrading or downgrading.

String getSku()

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

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

getOldSkus

ArrayList<String> getOldSkus ()

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

Returns
ArrayList<String>

getReplaceSkusProration

boolean getReplaceSkusProration ()

Returns whether the user should be credited for any unused subscription time on the SKUs they are upgrading or downgrading.

Returns
boolean

getSku

String getSku ()

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

Returns
String

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

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)