API reference
API reference
Select your platform
No SDKs available
No versions available

com.meta.horizon.billingclient.api

Package-level declarations

Types

NameSummary
data class AccountIdentifiers(val obfuscatedAccountId: String, val obfuscatedProfileId: String)
Account identifiers that were specified when the purchase was made.
data class AcknowledgePurchaseParams(val purchaseToken: String)
Parameters to acknowledge a purchase. See BillingClient.acknowledgePurchase.
interface AcknowledgePurchaseResponseListener
Listener for the result of an acknowledge purchase request.
interface AgeCategoryResponseListener
Listener to Age Category Response.
interface AlternativeBillingListener
Listener interface for the developer-managed alternative billing flow, when it is chosen by the user when initiating a purchase.
interface AlternativeBillingOnlyAvailabilityListener
Listener for the result of the isAlternativeBillingOnlyAvailableAsync API.
interface AlternativeBillingOnlyInformationDialogListener
Listener for the result of the showAlternativeBillingOnlyInformationDialog API.
data class AlternativeBillingOnlyReportingDetails(val externalTransactionToken: String)
This class is not used by Meta because Alternative Billing for IAP is not supported.
interface AlternativeBillingOnlyReportingDetailsListener
Listener for the result of the createAlternativeBillingOnlyReportingDetailsAsync API.
data class AlternativeChoiceDetails(val externalTransactionToken: String, val originalExternalTransactionId: String, val products: List<AlternativeChoiceDetails.Product>)
Details related to a user’s choice of alternative billing.
abstract class BillingClient
Main interface for communication between the library and user application code.
interface BillingClientStateListener
Callback for setup process. This listener’s BillingClient.onBillingSetupFinished method is called when the setup process is complete.
data class BillingConfig(val countryCode: String)
BillingConfig stores configuration used to perform billing operations.
interface BillingConfigResponseListener
Listener for the result of the getBillingConfigAsync API.
data class BillingFlowParams(val obfuscatedAccountId: String? = null, val obfuscatedProfileId: String? = null, val isOfferPersonalized: Boolean = false, val productDetailsParamsList: List<BillingFlowParams.ProductDetailsParams> = emptyList(), val subscriptionUpdateParams: BillingFlowParams.SubscriptionUpdateParams? = null, val skuDetails: SkuDetails? = null)
Parameters to initiate a purchase flow. See BillingClient.launchBillingFlow.
data class BillingResult(val responseCode: Int, val debugMessage: String)
Params containing the response code and the debug message from In-app Billing API response.
data class ConsumeParams(val purchaseToken: String)
Parameters to consume a purchase. See BillingClient.consumeAsync.
interface ConsumeResponseListener
Callback that notifies when a consumption operation finishes.
interface ExternalOfferAvailabilityListener
Listener for the result of the isExternalOfferAvailableAsync API.
interface ExternalOfferInformationDialogListener
Listener for the result of the [BillingClient.showExternalOfferInformationDialog] API.
data class ExternalOfferReportingDetails(val externalTransactionToken: String)
The details used to report transactions made via external offer.
interface ExternalOfferReportingDetailsListener
Listener for the result of the createExternalOfferReportingDetailsAsync API.
class GetBillingConfigParams
Parameters for get billing config flow BillingClient.getBillingConfigAsync.
class InAppMessageParams(inAppMessageCategoriesSet: Set<Int>)
Parameters for in-app messaging. See BillingClient.showInAppMessages.
interface InAppMessageResponseListener
Listener for the result of the in-app messaging flow.
data class InAppMessageResult(val purchaseToken: String, val responseCode: Int)
Results related to in-app messaging.
class PendingPurchasesParams
Parameters to enable pending purchases.
interface PriceChangeConfirmationListener
Listener to a result of the price change confirmation flow.
data class PriceChangeFlowParams(val skuDetails: SkuDetails)
Parameters to launch a price change confirmation flow.
data class ProductDetails(val productId: String, val title: String = "", val name: String = "", val description: String = "", val productType: String, val oneTimePurchaseOfferDetails: ProductDetails.OneTimePurchaseOfferDetails?, var subscriptionOfferDetails: List<ProductDetails.SubscriptionOfferDetails>?)
Represents the details of a one time or subscription product.
interface ProductDetailsResponseListener
Listener to a result of product details query.
data class Purchase(val purchaseTime: Long, val purchaseToken: String, val products: List<String>, val packageName: String, val developerPayload: String? = "", val orderId: String? = "", val originalJson: String? = "", val quantity: Int = 1, val signature: String = "")
Represents an in-app billing purchase.
data class PurchaseHistoryRecord(val purchaseTime: Long, val purchaseToken: String, val products: List<String>, val developerPayload: String? = "", val originalJson: String? = "", val quantity: Int = 1, val signature: String = "")
Represents an in-app billing purchase history record.
interface PurchaseHistoryResponseListener
Listener to a result of purchase history query.
interface PurchasesResponseListener
Listener to a result of purchases query.
interface PurchasesUpdatedListener
Listener interface for purchase updates which happen when, for example, the user buys something within the app or by initiating a purchase from the Store.
data class QueryProductDetailsParams(val productList: List<QueryProductDetailsParams.Product>)
Parameters to initiate a query for Product details BillingClient.queryProductDetailsAsync.
data class QueryPurchaseHistoryParams(val productType: String)
Parameters to initiate a query for purchase history.
data class QueryPurchasesParams(val productType: String)
Parameters to initiate a query for purchases.
data class SkuDetails(val price: String, val priceAmountMicros: Long, val priceCurrencyCode: String, val sku: String, val subscriptionPeriod: String, val title: String, val description: String, val type: String, val originalPrice: String = "", val originalPriceAmountMicros: Long = 0, val originalJson: String = "", val introductoryPrice: String = "", val introductoryPriceAmountMicros: Long = 0, val introductoryPriceCycles: Int = 0, val introductoryPricePeriod: String = "", val iconUrl: String = "", val freeTrialPeriod: String = "")
Represents an in-app product’s or subscription’s listing details.
data class SkuDetailsParams(val skuType: String, val skusList: List<String>)
Parameters to initiate a query for SKU details. See BillingClient.querySkuDetailsAsync.
interface SkuDetailsResponseListener
Listener to a result of SKU details query.
interface UserChoiceBillingListener
Listener interface for the developer-managed alternative billing flow, when it is chosen by the user when initiating a purchase.
data class UserChoiceDetails(val externalTransactionId: String, val originalExternalTransactionId: String, val products: List<UserChoiceDetails.Product>)
Details related to a user’s choice of alternative billing.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon