com.android.billingclient.api

Annotations

BillingClient.BillingResponseCode

Possible response codes.

BillingClient.ConnectionState

Connection state of billing client.

BillingClient.FeatureType

Features/capabilities supported by isFeatureSupported.

BillingClient.ProductType

Supported Product types.

BillingClient.SkuType

This annotation is deprecated.

Use ProductType instead.

BillingFlowParams.SubscriptionUpdateParams.ReplacementMode

Supported replacement modes to replace an existing subscription with a new one.

InAppMessageParams.InAppMessageCategoryId

A high-level category of the in-app message.

InAppMessageResult.InAppMessageResponseCode

Possible response codes.

ProductDetails.RecurrenceMode

Recurrence mode of the pricing phase.

Purchase.PurchaseState

Possible purchase states.

Interfaces

AcknowledgePurchaseResponseListener

Listener for the result of an acknowledge purchase request.

AlternativeBillingOnlyAvailabilityListener

Listener for the result of the BillingClient#isAlternativeBillingOnlyAvailableAsync API.

AlternativeBillingOnlyInformationDialogListener

Listener for the result of the BillingClient#showAlternativeBillingOnlyInformationDialog API.

AlternativeBillingOnlyReportingDetailsListener

Listener for the result of the createAlternativeBillingOnlyReportingDetailsAsync API.

BillingClientStateListener

Callback for setup process.

BillingConfigResponseListener

Listener for the result of the BillingClient#getBillingConfigAsync API.

ConsumeResponseListener

Callback that notifies when a consumption operation finishes.

ExternalOfferAvailabilityListener

Listener for the result of the BillingClient#isExternalOfferAvailableAsync API.

ExternalOfferInformationDialogListener

Listener for the result of the BillingClient#showExternalOfferInformationDialog API.

ExternalOfferReportingDetailsListener

Listener for the result of the BillingClient#createExternalOfferReportingDetailsAsync API.

InAppMessageResponseListener

Listener for the result of the in-app messaging flow.

ProductDetailsResponseListener

Listener to a result of product details query.

PurchaseHistoryResponseListener

Listener to a result of purchase history query.

PurchasesResponseListener

Listener to a result of purchases query.

PurchasesUpdatedListener

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.

SkuDetailsResponseListener

This interface is deprecated.

Use BillingClient#queryProductDetailsAsync instead

UserChoiceBillingListener

Listener interface for the developer-managed alternative billing flow, when it is chosen by the user when initiating a purchase.

Classes

AccountIdentifiers

Account identifiers that were specified when the purchase was made.

AcknowledgePurchaseParams

Parameters to acknowledge a purchase.

AcknowledgePurchaseParams.Builder

Helps construct AcknowledgePurchaseParams that are used to acknowledge a purchase.

AlternativeBillingOnlyReportingDetails

The details used to report transactions made via alternative billing without user choice to use Google Play billing.

BillingClient

Main interface for communication between the library and user application code.

BillingClient.Builder

Builder to configure and create a BillingClient instance.

BillingConfig

BillingConfig stores configuration used to perform billing operations.

BillingFlowParams

Parameters to initiate a purchase flow.

BillingFlowParams.Builder

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

BillingFlowParams.ProductDetailsParams

Params that describe the product to be purchased and the offer to purchase with.

BillingFlowParams.ProductDetailsParams.Builder

Helps to construct a ProductDetailsParams.

BillingFlowParams.SubscriptionUpdateParams

Params that describe a subscription update.

BillingFlowParams.SubscriptionUpdateParams.Builder

Helps to construct SubscriptionUpdateParams.

BillingResult

Params containing the response code and the debug message from In-app Billing API response.

BillingResult.Builder

Helps to construct BillingResult that are used to return response from In-app Billing API.

ConsumeParams

Parameters to consume a purchase.

ConsumeParams.Builder

Helps construct ConsumeParams that are used to consume a purchase.

ExternalOfferReportingDetails

The details used to report transactions made via external offer.

GetBillingConfigParams

Parameters for get billing config flow BillingClient#getBillingConfigAsync.

GetBillingConfigParams.Builder

Helps construct GetBillingConfigParams.

InAppMessageParams

Parameters for in-app messaging.

InAppMessageParams.Builder

Helps construct InAppMessageParams.

InAppMessageResult

Results related to in-app messaging.

PendingPurchasesParams

Parameters to enable pending purchases.

PendingPurchasesParams.Builder

Helps construct PendingPurchasesParams that are used to enable pending purchases.

ProductDetails

Represents the details of a one time or subscription product.

ProductDetails.InstallmentPlanDetails

Represents additional details of an installment subscription plan.

ProductDetails.OneTimePurchaseOfferDetails

Represents the offer details to buy an one-time purchase product.

ProductDetails.PricingPhase

Represents a pricing phase, describing how a user pays at a point in time.

ProductDetails.PricingPhases

Pricing phases for purchasing an item through a offer.

ProductDetails.SubscriptionOfferDetails

Represents the available purchase plans to buy a subscription product.

Purchase

Represents an in-app billing purchase.

Purchase.PendingPurchaseUpdate

Represents a pending change/update to the existing purchase.

PurchaseHistoryRecord

Represents an in-app billing purchase history record.

QueryProductDetailsParams

Parameters to initiate a query for Product details queryProductDetailsAsync.

QueryProductDetailsParams.Builder

Helps construct QueryProductDetailsParams required to query ProductDetails.

QueryProductDetailsParams.Product

A Product identifier used for querying product details.

QueryProductDetailsParams.Product.Builder

Builder that helps construct Product.

QueryPurchaseHistoryParams

Parameters to initiate a query for purchase history.

QueryPurchaseHistoryParams.Builder

Helps construct QueryPurchaseHistoryParams required to query purchase history.

QueryPurchasesParams

Parameters to initiate a query for purchases.

QueryPurchasesParams.Builder

Helps construct QueryPurchasesParams required to query purchases.

SkuDetails

This class is deprecated.

Use BillingClient#queryProductDetailsAsync instead

SkuDetailsParams

This class is deprecated.

Use BillingClient#queryProductDetailsAsync instead

SkuDetailsParams.Builder

Helps to construct SkuDetailsParams that are used to query for SKU details.

UserChoiceDetails

Details related to a user's choice of alternative billing.

UserChoiceDetails.Product

Details about a product being purchased.