Skip navigation links
A B C D E F G H I L N O P Q R S T U 

A

addOldSku(String) - Method in class com.android.billingclient.api.BillingFlowParams.Builder
Deprecated.

B

BILLING_UNAVAILABLE - Static variable in annotation type com.android.billingclient.api.BillingClient.BillingResponse
Billing API version is not supported for the type requested
BillingClient - Class in com.android.billingclient.api
Main interface for communication between the library and user application code.
BillingClient() - Constructor for class com.android.billingclient.api.BillingClient
 
BillingClient.BillingResponse - Annotation Type in com.android.billingclient.api
Possible response codes.
BillingClient.Builder - Class in com.android.billingclient.api
Builder to configure and create a BillingClient instance.
BillingClient.ChildDirected - Annotation Type in com.android.billingclient.api
Developers are able to specify whether you would like your app to be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA) - http://business.ftc.gov/privacy-and-security/childrens-privacy.
BillingClient.FeatureType - Annotation Type in com.android.billingclient.api
Features/capabilities supported by BillingClient.isFeatureSupported(String).
BillingClient.SkuType - Annotation Type in com.android.billingclient.api
Supported SKU types.
BillingClient.UnderAgeOfConsent - Annotation Type in com.android.billingclient.api
Developers are able to specify whether to mark your ad requests to receive treatment for users in the European Economic Area (EEA) under the age of consent.
BillingClientStateListener - Interface in com.android.billingclient.api
Callback for setup process.
BillingFlowParams - Class in com.android.billingclient.api
Parameters to initiate a purchase flow.
BillingFlowParams() - Constructor for class com.android.billingclient.api.BillingFlowParams
 
BillingFlowParams.Builder - Class in com.android.billingclient.api
Helps to construct BillingFlowParams that are used to initiate a purchase flow.
BillingFlowParams.ProrationMode - Annotation Type in com.android.billingclient.api
Replace SKU ProrationMode.
BillingHelper - Class in com.android.billingclient.util
Helper methods for billing client.
BillingHelper() - Constructor for class com.android.billingclient.util.BillingHelper
 
build() - Method in class com.android.billingclient.api.BillingClient.Builder
Creates a Billing client instance.
build() - Method in class com.android.billingclient.api.BillingFlowParams.Builder
Returns BillingFlowParams reference to initiate a purchase flow.
build() - Method in class com.android.billingclient.api.PriceChangeFlowParams.Builder
Returns the PriceChangeFlowParams to initiate price change confirmation flow.
build() - Method in class com.android.billingclient.api.RewardLoadParams.Builder
Returns RewardLoadParams reference to initiate load.
build() - Method in class com.android.billingclient.api.SkuDetailsParams.Builder
Returns SkuDetailsParams reference to initiate a purchase flow.
Builder() - Constructor for class com.android.billingclient.api.PriceChangeFlowParams.Builder
 
Builder() - Constructor for class com.android.billingclient.api.RewardLoadParams.Builder
 

C

CHILD_DIRECTED - Static variable in annotation type com.android.billingclient.api.BillingClient.ChildDirected
App indicates its ad requests should be treated as child-directed.
com.android.billingclient.api - package com.android.billingclient.api
 
com.android.billingclient.util - package com.android.billingclient.util
 
consumeAsync(String, ConsumeResponseListener) - Method in class com.android.billingclient.api.BillingClient
Consumes a given in-app product.
ConsumeResponseListener - Interface in com.android.billingclient.api
Callback that notifies when a consumption operation finishes.

D

DEFERRED - Static variable in annotation type com.android.billingclient.api.BillingFlowParams.ProrationMode
Replacement takes effect when the old plan expires, and the new price will be charged at the same time.
DEVELOPER_ERROR - Static variable in annotation type com.android.billingclient.api.BillingClient.BillingResponse
Invalid arguments provided to the API.

E

endConnection() - Method in class com.android.billingclient.api.BillingClient
Close the connection and release all held resources such as service connections.
equals(Object) - Method in class com.android.billingclient.api.Purchase
 
equals(Object) - Method in class com.android.billingclient.api.SkuDetails
 
ERROR - Static variable in annotation type com.android.billingclient.api.BillingClient.BillingResponse
Fatal error during the API action
EXTRA_PARAM_KEY_SUBS_PRICE_CHANGE - Static variable in class com.android.billingclient.util.BillingHelper
 
extractPurchases(Bundle) - Static method in class com.android.billingclient.util.BillingHelper
Gets a purchase data and signature (or lists of them) from the Bundle and returns the constructed list of Purchase

F

FEATURE_NOT_SUPPORTED - Static variable in annotation type com.android.billingclient.api.BillingClient.BillingResponse
Requested feature is not supported by Play Store on the current device.

G

getAccountId() - Method in class com.android.billingclient.api.BillingFlowParams
Returns an optional obfuscated string that is uniquely associated with the user's account.
getDescription() - Method in class com.android.billingclient.api.SkuDetails
Returns the description of the product.
getFreeTrialPeriod() - Method in class com.android.billingclient.api.SkuDetails
Trial period configured in Google Play Console, specified in ISO 8601 format.
getIntroductoryPrice() - Method in class com.android.billingclient.api.SkuDetails
Formatted introductory price of a subscription, including its currency sign, such as €3.99.
getIntroductoryPriceAmountMicros() - Method in class com.android.billingclient.api.SkuDetails
Introductory price in micro-units.
getIntroductoryPriceCycles() - Method in class com.android.billingclient.api.SkuDetails
The number of subscription billing periods for which the user will be given the introductory price, such as 3.
getIntroductoryPricePeriod() - Method in class com.android.billingclient.api.SkuDetails
The billing period of the introductory price, specified in ISO 8601 format.
getOldSku() - Method in class com.android.billingclient.api.BillingFlowParams
Returns the SKU that the user is upgrading or downgrading from.
getOldSkus() - Method in class com.android.billingclient.api.BillingFlowParams
Deprecated.
getOrderId() - Method in class com.android.billingclient.api.Purchase
Returns an unique order identifier for the transaction.
getOriginalJson() - Method in class com.android.billingclient.api.Purchase
Returns a String in JSON format that contains details about the purchase order.
getOriginalJson() - Method in class com.android.billingclient.api.SkuDetails
Returns a String in JSON format that contains Sku details.
getPackageName() - Method in class com.android.billingclient.api.Purchase
Returns the application package from which the purchase originated.
getPrice() - Method in class com.android.billingclient.api.SkuDetails
Returns formatted price of the item, including its currency sign.
getPriceAmountMicros() - Method in class com.android.billingclient.api.SkuDetails
Returns price in micro-units, where 1,000,000 micro-units equal one unit of the currency.
getPriceCurrencyCode() - Method in class com.android.billingclient.api.SkuDetails
Returns ISO 4217 currency code for price.
getPurchasesList() - Method in class com.android.billingclient.api.Purchase.PurchasesResult
Returns the list of Purchase.
getPurchaseTime() - Method in class com.android.billingclient.api.Purchase
Returns the time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
getPurchaseToken() - Method in class com.android.billingclient.api.Purchase
Returns a token that uniquely identifies a purchase for a given item and user pair.
getReplaceSkusProrationMode() - Method in class com.android.billingclient.api.BillingFlowParams
Returns an optional integer that indicates the Replace SKU ProrationMode.
getResponseCode() - Method in class com.android.billingclient.api.Purchase.PurchasesResult
Returns the response code of the operation.
getResponseCode() - Method in class com.android.billingclient.api.SkuDetails.SkuDetailsResult
 
getResponseCodeFromBundle(Bundle, String) - Static method in class com.android.billingclient.util.BillingHelper
Retrieves a response code from the bundle
getResponseCodeFromIntent(Intent, String) - Static method in class com.android.billingclient.util.BillingHelper
Retrieves a response code from the intent
getSignature() - Method in class com.android.billingclient.api.Purchase
Returns String containing the signature of the purchase data that was signed with the private key of the developer.
getSku() - Method in class com.android.billingclient.api.BillingFlowParams
Returns the SKU that is being purchased or upgraded/downgraded to as published in the Google Developer console.
getSku() - Method in class com.android.billingclient.api.Purchase
Returns the product Id.
getSku() - Method in class com.android.billingclient.api.SkuDetails
Returns the product Id.
getSkuDetails() - Method in class com.android.billingclient.api.BillingFlowParams
Returns the full sku details for this purchase.
getSkuDetails() - Method in class com.android.billingclient.api.PriceChangeFlowParams
 
getSkuDetails() - Method in class com.android.billingclient.api.RewardLoadParams
 
getSkuDetailsList() - Method in class com.android.billingclient.api.SkuDetails.SkuDetailsResult
 
getSkusList() - Method in class com.android.billingclient.api.SkuDetailsParams
 
getSkuType() - Method in class com.android.billingclient.api.BillingFlowParams
Returns the billing type BillingClient.SkuType of the item being purchased.
getSkuType() - Method in class com.android.billingclient.api.SkuDetailsParams
 
getSubscriptionPeriod() - Method in class com.android.billingclient.api.SkuDetails
Subscription period, specified in ISO 8601 format.
getTitle() - Method in class com.android.billingclient.api.SkuDetails
Returns the title of the product.
getType() - Method in class com.android.billingclient.api.SkuDetails
Returns SKU type.
getVrPurchaseFlow() - Method in class com.android.billingclient.api.BillingFlowParams
Returns an optional flag indicating whether you wish to launch a VR purchase flow.

H

hasExtraParams() - Method in class com.android.billingclient.api.BillingFlowParams
Returns whether it has an optional params for a custom purchase flow.
hashCode() - Method in class com.android.billingclient.api.Purchase
 
hashCode() - Method in class com.android.billingclient.api.SkuDetails
 

I

IMMEDIATE_AND_CHARGE_PRORATED_PRICE - Static variable in annotation type com.android.billingclient.api.BillingFlowParams.ProrationMode
Replacement takes effect immediately, and the billing cycle remains the same.
IMMEDIATE_WITH_TIME_PRORATION - Static variable in annotation type com.android.billingclient.api.BillingFlowParams.ProrationMode
Replacement takes effect immediately, and the remaining time will be prorated and credited to the user.
IMMEDIATE_WITHOUT_PRORATION - Static variable in annotation type com.android.billingclient.api.BillingFlowParams.ProrationMode
Replacement takes effect immediately, and the new price will be charged on next recurrence time.
IN_APP_ITEMS_ON_VR - Static variable in annotation type com.android.billingclient.api.BillingClient.FeatureType
Purchase/query for in-app items on VR.
INAPP - Static variable in annotation type com.android.billingclient.api.BillingClient.SkuType
A type of SKU for in-app products.
INAPP_CONTINUATION_TOKEN - Static variable in class com.android.billingclient.util.BillingHelper
 
isAutoRenewing() - Method in class com.android.billingclient.api.Purchase
Indicates whether the subscription renews automatically.
isFeatureSupported(String) - Method in class com.android.billingclient.api.BillingClient
Check if specified feature or capability is supported by the Play Store.
isReady() - Method in class com.android.billingclient.api.BillingClient
Checks if the client is currently connected to the service, so that requests to other methods will succeed.
isRewarded() - Method in class com.android.billingclient.api.SkuDetails
Returns true if sku is rewarded instead of paid.
ITEM_ALREADY_OWNED - Static variable in annotation type com.android.billingclient.api.BillingClient.BillingResponse
Failure to purchase since item is already owned
ITEM_NOT_OWNED - Static variable in annotation type com.android.billingclient.api.BillingClient.BillingResponse
Failure to consume since item is not owned
ITEM_UNAVAILABLE - Static variable in annotation type com.android.billingclient.api.BillingClient.BillingResponse
Requested product is not available for purchase

L

launchBillingFlow(Activity, BillingFlowParams) - Method in class com.android.billingclient.api.BillingClient
Initiate the billing flow for an in-app purchase or subscription.
launchPriceChangeConfirmationFlow(Activity, PriceChangeFlowParams, PriceChangeConfirmationListener) - Method in class com.android.billingclient.api.BillingClient
Initiate a flow to confirm the change of price for an item subscribed by the user.
LIBRARY_VERSION_KEY - Static variable in class com.android.billingclient.util.BillingHelper
Field's key to hold library version key constant.
loadRewardedSku(RewardLoadParams, RewardResponseListener) - Method in class com.android.billingclient.api.BillingClient
Loads a rewarded sku in the background and returns the result asynchronously.
logVerbose(String, String) - Static method in class com.android.billingclient.util.BillingHelper
Logs a verbose message
logWarn(String, String) - Static method in class com.android.billingclient.util.BillingHelper
Logs a warning message

N

newBuilder(Context) - Static method in class com.android.billingclient.api.BillingClient
Constructs a new BillingClient.Builder instance.
newBuilder() - Static method in class com.android.billingclient.api.BillingFlowParams
Constructs a new BillingFlowParams.Builder instance.
newBuilder() - Static method in class com.android.billingclient.api.PriceChangeFlowParams
Constructs a new PriceChangeFlowParams.Builder instance.
newBuilder() - Static method in class com.android.billingclient.api.RewardLoadParams
Constructs a new RewardLoadParams.Builder instance.
newBuilder() - Static method in class com.android.billingclient.api.SkuDetailsParams
Constructs a new SkuDetailsParams.Builder instance.
NOT_CHILD_DIRECTED - Static variable in annotation type com.android.billingclient.api.BillingClient.ChildDirected
App indicates its ad requests should NOT be treated as child-directed.
NOT_UNDER_AGE_OF_CONSENT - Static variable in annotation type com.android.billingclient.api.BillingClient.UnderAgeOfConsent
App indicates the ad requests shall NOT be handled in a manner suitable for users under the age of consent.
NUMBER_OF_CORES - Static variable in class com.android.billingclient.util.BillingHelper
Total number of cores of current device

O

OK - Static variable in annotation type com.android.billingclient.api.BillingClient.BillingResponse
Success
onActivityResult(int, int, Intent) - Method in class com.android.billingclient.api.ProxyBillingActivity
 
onBillingServiceDisconnected() - Method in interface com.android.billingclient.api.BillingClientStateListener
Called to notify that connection to billing service was lost
onBillingSetupFinished(int) - Method in interface com.android.billingclient.api.BillingClientStateListener
Called to notify that setup is complete.
onConsumeResponse(int, String) - Method in interface com.android.billingclient.api.ConsumeResponseListener
Called to notify that a consume operation has finished.
onCreate(Bundle) - Method in class com.android.billingclient.api.ProxyBillingActivity
 
onPriceChangeConfirmationResult(int) - Method in interface com.android.billingclient.api.PriceChangeConfirmationListener
Called to notify when a price change confirmation flow has finished.
onPurchaseHistoryResponse(int, List<Purchase>) - Method in interface com.android.billingclient.api.PurchaseHistoryResponseListener
Called to notify that purchase history fetch operation has finished.
onPurchasesUpdated(int, List<Purchase>) - Method in interface com.android.billingclient.api.PurchasesUpdatedListener
Implement this method to get notifications for purchases updates.
onRewardResponse(int) - Method in interface com.android.billingclient.api.RewardResponseListener
Called to notify that a load reward operation has finished.
onSaveInstanceState(Bundle) - Method in class com.android.billingclient.api.ProxyBillingActivity
 
onSkuDetailsResponse(int, List<SkuDetails>) - Method in interface com.android.billingclient.api.SkuDetailsResponseListener
Called to notify that a fetch SKU details operation has finished.

P

PRICE_CHANGE_CONFIRMATION - Static variable in annotation type com.android.billingclient.api.BillingClient.FeatureType
Launch a price change confirmation flow.
PriceChangeConfirmationListener - Interface in com.android.billingclient.api
Listener to a result of the price change confirmation flow.
PriceChangeFlowParams - Class in com.android.billingclient.api
Parameters to launch a price change confirmation flow.
PriceChangeFlowParams() - Constructor for class com.android.billingclient.api.PriceChangeFlowParams
 
PriceChangeFlowParams.Builder - Class in com.android.billingclient.api
Helps construct PriceChangeFlowParams that are used to launch a price change confirmation flow
ProxyBillingActivity - Class in com.android.billingclient.api
An invisible activity that launches another billing-related activity and delivers parsed result to the BillingClient via ResultReceiver.
ProxyBillingActivity() - Constructor for class com.android.billingclient.api.ProxyBillingActivity
 
Purchase - Class in com.android.billingclient.api
Represents an in-app billing purchase.
Purchase(String, String) - Constructor for class com.android.billingclient.api.Purchase
 
Purchase.PurchasesResult - Class in com.android.billingclient.api
Result list and code for queryPurchases method
PurchaseHistoryResponseListener - Interface in com.android.billingclient.api
Listener to a result of purchases history query.
PurchasesResult(int, List<Purchase>) - Constructor for class com.android.billingclient.api.Purchase.PurchasesResult
 
PurchasesUpdatedListener - Interface in com.android.billingclient.api
Listener interface for purchase updates which happen when, for example, the user buys something within the app or by initiating a purchase from Google Play Store.

Q

queryPurchaseHistoryAsync(String, PurchaseHistoryResponseListener) - Method in class com.android.billingclient.api.BillingClient
Returns the most recent purchase made by the user for each SKU, even if that purchase is expired, canceled, or consumed.
queryPurchases(String) - Method in class com.android.billingclient.api.BillingClient
Get purchases details for all the items bought within your app.
querySkuDetailsAsync(SkuDetailsParams, SkuDetailsResponseListener) - Method in class com.android.billingclient.api.BillingClient
Perform a network query to get SKU details and return the result asynchronously.

R

RESPONSE_BUY_INTENT_KEY - Static variable in class com.android.billingclient.util.BillingHelper
Key in the response bundle of getBuyIntent for the purchase intent
RESPONSE_CODE - Static variable in class com.android.billingclient.util.BillingHelper
 
RESPONSE_GET_SKU_DETAILS_LIST - Static variable in class com.android.billingclient.util.BillingHelper
 
RESPONSE_INAPP_ITEM_LIST - Static variable in class com.android.billingclient.util.BillingHelper
 
RESPONSE_INAPP_PURCHASE_DATA_LIST - Static variable in class com.android.billingclient.util.BillingHelper
 
RESPONSE_INAPP_SIGNATURE_LIST - Static variable in class com.android.billingclient.util.BillingHelper
 
RESPONSE_SUBS_MANAGEMENT_INTENT_KEY - Static variable in class com.android.billingclient.util.BillingHelper
Key in the response bundle of getSubsManagement for the subs management intent
RewardLoadParams - Class in com.android.billingclient.api
Parameters to load a rewarded SKU.
RewardLoadParams() - Constructor for class com.android.billingclient.api.RewardLoadParams
 
RewardLoadParams.Builder - Class in com.android.billingclient.api
Helps construct RewardLoadParams that are used to load rewarded SKUs
RewardResponseListener - Interface in com.android.billingclient.api
Listener to a result of load reward request

S

SERVICE_DISCONNECTED - Static variable in annotation type com.android.billingclient.api.BillingClient.BillingResponse
Play Store service is not connected now - potentially transient state.
SERVICE_TIMEOUT - Static variable in annotation type com.android.billingclient.api.BillingClient.BillingResponse
The request has reached the maximum timeout before Google Play responds.
SERVICE_UNAVAILABLE - Static variable in annotation type com.android.billingclient.api.BillingClient.BillingResponse
Network connection is down
setAccountId(String) - Method in class com.android.billingclient.api.BillingFlowParams.Builder
Specify an optional obfuscated string that is uniquely associated with the user's account in your app.
setChildDirected(int) - Method in class com.android.billingclient.api.BillingClient.Builder
Developers are able to specify whether this app is child directed or not to ensure compliance with US COPPA & EEA age of consent laws.
setListener(PurchasesUpdatedListener) - Method in class com.android.billingclient.api.BillingClient.Builder
Specify a valid listener for onPurchasesUpdated event.
setOldSku(String) - Method in class com.android.billingclient.api.BillingFlowParams.Builder
Specify the SKU that the user is upgrading or downgrading from.
setOldSkus(ArrayList<String>) - Method in class com.android.billingclient.api.BillingFlowParams.Builder
setReplaceSkusProrationMode(int) - Method in class com.android.billingclient.api.BillingFlowParams.Builder
Specifies the mode of proration during subscription upgrade/downgrade.
setSku(String) - Method in class com.android.billingclient.api.BillingFlowParams.Builder
setSkuDetails(SkuDetails) - Method in class com.android.billingclient.api.BillingFlowParams.Builder
Specify the SkuDetails SkuDetails of the item being purchase.
setSkuDetails(SkuDetails) - Method in class com.android.billingclient.api.PriceChangeFlowParams.Builder
Specify the SKU that has the pending price change.
setSkuDetails(SkuDetails) - Method in class com.android.billingclient.api.RewardLoadParams.Builder
Specify the SKU to load
setSkusList(List<String>) - Method in class com.android.billingclient.api.SkuDetailsParams.Builder
Specify the SKUs that are queried for as published in the Google Developer console.
setType(String) - Method in class com.android.billingclient.api.BillingFlowParams.Builder
setType(String) - Method in class com.android.billingclient.api.SkuDetailsParams.Builder
Specify the type BillingClient.SkuType of SKUs we are querying for.
setUnderAgeOfConsent(int) - Method in class com.android.billingclient.api.BillingClient.Builder
Developers are able to specify whether this app is under age of consent or not to ensure compliance with US COPPA & EEA age of consent laws.
setVrPurchaseFlow(boolean) - Method in class com.android.billingclient.api.BillingFlowParams.Builder
Specify an optional flag indicating whether you wish to launch a VR purchase flow.
SkuDetails - Class in com.android.billingclient.api
Represents an in-app product's or subscription's listing details.
SkuDetails(String) - Constructor for class com.android.billingclient.api.SkuDetails
 
SkuDetails.SkuDetailsResult - Class in com.android.billingclient.api
Result list and code for querySkuDetailsAsync method
SkuDetailsParams - Class in com.android.billingclient.api
Parameters to initiate a query for SKU details.
SkuDetailsParams() - Constructor for class com.android.billingclient.api.SkuDetailsParams
 
SkuDetailsParams.Builder - Class in com.android.billingclient.api
Helps to construct SkuDetailsParams that are used to query for SKU details.
SkuDetailsResponseListener - Interface in com.android.billingclient.api
Listener to a result of SKU details query
SkuDetailsResult(int, List<SkuDetails>) - Constructor for class com.android.billingclient.api.SkuDetails.SkuDetailsResult
 
startConnection(BillingClientStateListener) - Method in class com.android.billingclient.api.BillingClient
Starts up BillingClient setup process asynchronously.
SUBS - Static variable in annotation type com.android.billingclient.api.BillingClient.SkuType
A type of SKU for subscriptions.
SUBSCRIPTIONS - Static variable in annotation type com.android.billingclient.api.BillingClient.FeatureType
Purchase/query for subscriptions.
SUBSCRIPTIONS_ON_VR - Static variable in annotation type com.android.billingclient.api.BillingClient.FeatureType
Purchase/query for subscriptions on VR.
SUBSCRIPTIONS_UPDATE - Static variable in annotation type com.android.billingclient.api.BillingClient.FeatureType
Subscriptions update/replace.

T

toString() - Method in class com.android.billingclient.api.Purchase
 
toString() - Method in class com.android.billingclient.api.SkuDetails
 

U

UNDER_AGE_OF_CONSENT - Static variable in annotation type com.android.billingclient.api.BillingClient.UnderAgeOfConsent
App indicates the ad requests shall be handled in a manner suitable for users under the age of consent.
UNKNOWN_SUBSCRIPTION_UPGRADE_DOWNGRADE_POLICY - Static variable in annotation type com.android.billingclient.api.BillingFlowParams.ProrationMode
 
UNSPECIFIED - Static variable in annotation type com.android.billingclient.api.BillingClient.ChildDirected
App has not specified whether its ad requests should be treated as child directed or not.
UNSPECIFIED - Static variable in annotation type com.android.billingclient.api.BillingClient.UnderAgeOfConsent
App has not specified how ad requests shall be handled.
USER_CANCELED - Static variable in annotation type com.android.billingclient.api.BillingClient.BillingResponse
User pressed back or canceled a dialog
A B C D E F G H I L N O P Q R S T U 
Skip navigation links