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 |
@interface |
BillingFlowParams.ProrationMode
Replace SKU ProrationMode. |
Constants | |
---|---|
String |
EXTRA_PARAM_CHILD_DIRECTED
|
String |
EXTRA_PARAM_KEY_ACCOUNT_ID
|
String |
EXTRA_PARAM_KEY_DEVELOPER_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_RSKU
|
String |
EXTRA_PARAM_KEY_VR
|
String |
EXTRA_PARAM_UNDER_AGE_OF_CONSENT
|
Public constructors | |
---|---|
BillingFlowParams()
|
Public methods | |
---|---|
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. |
String
|
getOldSkuPurchaseToken()
Returns the purchase token of the sku the user is upgrading or downgrading from. |
ArrayList<String>
|
getOldSkus()
This method is deprecated.
Use |
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 |
boolean
|
getVrPurchaseFlow()
Returns an optional flag indicating whether you wish to launch a VR purchase flow. |
static
BillingFlowParams.Builder
|
newBuilder()
Constructs a new |
Inherited methods | |
---|---|
![]()
java.lang.Object
|
Constants
EXTRA_PARAM_CHILD_DIRECTED
String EXTRA_PARAM_CHILD_DIRECTED
Constant Value: "childDirected"
EXTRA_PARAM_KEY_ACCOUNT_ID
String EXTRA_PARAM_KEY_ACCOUNT_ID
Constant Value: "accountId"
EXTRA_PARAM_KEY_DEVELOPER_ID
String EXTRA_PARAM_KEY_DEVELOPER_ID
Constant Value: "developerId"
EXTRA_PARAM_KEY_OLD_SKUS
String EXTRA_PARAM_KEY_OLD_SKUS
Constant Value: "skusToReplace"
EXTRA_PARAM_KEY_OLD_SKU_PURCHASE_TOKEN
String EXTRA_PARAM_KEY_OLD_SKU_PURCHASE_TOKEN
Constant Value: "oldSkuPurchaseToken"
EXTRA_PARAM_KEY_REPLACE_SKUS_PRORATION_MODE
String EXTRA_PARAM_KEY_REPLACE_SKUS_PRORATION_MODE
Constant Value: "prorationMode"
EXTRA_PARAM_KEY_RSKU
String EXTRA_PARAM_KEY_RSKU
Constant Value: "rewardToken"
EXTRA_PARAM_KEY_VR
String EXTRA_PARAM_KEY_VR
Constant Value: "vr"
EXTRA_PARAM_UNDER_AGE_OF_CONSENT
String EXTRA_PARAM_UNDER_AGE_OF_CONSENT
Constant Value: "underAgeOfConsent"
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 |
getDeveloperId
String getDeveloperId ()
Returns an optional obfuscated string of the developer profile name.
Returns | |
---|---|
String |
getOldSku
String getOldSku ()
Returns the SKU that the user is upgrading or downgrading from.
Returns | |
---|---|
String |
getOldSkuPurchaseToken
String getOldSkuPurchaseToken ()
Returns the purchase token of the sku 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 |
newBuilder
BillingFlowParams.Builder newBuilder ()
Constructs a new BillingFlowParams.Builder
instance.
Returns | |
---|---|
BillingFlowParams.Builder |
Annotations
Interfaces
Classes
- AcknowledgePurchaseParams
- AcknowledgePurchaseParams.Builder
- BillingClient
- BillingClient.Builder
- BillingFlowParams
- BillingFlowParams.Builder
- BillingResult
- BillingResult.Builder
- ConsumeParams
- ConsumeParams.Builder
- PriceChangeFlowParams
- PriceChangeFlowParams.Builder
- ProxyBillingActivity
- Purchase
- Purchase.PurchasesResult
- PurchaseHistoryRecord
- RewardLoadParams
- RewardLoadParams.Builder
- SkuDetails
- SkuDetails.SkuDetailsResult
- SkuDetailsParams
- SkuDetailsParams.Builder
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.