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

Builder

Builder

class Builder
Builder to configure and create a BillingClient instance.
All methods in the class can be called from any thread, and results will be posted to the same thread.
The equivalent Google Play Billing Library class can be found here: https://developer.android.com/reference/com/android/billingclient/api/BillingClient.Builder

Functions

NameSummary
build
fun build(): BillingClient
Creates a Billing client instance.
enableAlternativeBillingOnly
fun enableAlternativeBillingOnly(): BillingClient.Builder
In the Google Play Billing Library, this enables the ability to offer alternative billing without user choice to use Google Play billing.
enableExternalOffer
fun enableExternalOffer(): BillingClient.Builder
Enables the ability to offer external offer.
enablePendingPurchases
fun enablePendingPurchases(): BillingClient.Builder
fun enablePendingPurchases(pendingPurchasesParams: PendingPurchasesParams): BillingClient.Builder
Enables pending purchase support.
enableUserChoiceBilling
fun enableUserChoiceBilling(userChoiceBillingListener: <Error class: unknown class>): BillingClient.Builder
The Google Play Billing Library allows developers to select an alternative billing option during the purchase flow and registers a listener.
setAppId
fun setAppId(appId: String): BillingClient.Builder
Specifies the AppId for the Quest Apps.
setListener
fun setListener(listener: <Error class: unknown class>): BillingClient.Builder
Specifies a valid listener for PurchasesUpdatedListener.onPurchasesUpdated events.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon