Google Billing Wrapper
class GoogleBillingWrapper(val context: Context, val ioScope: IOScope, val appLifecycleObserver: AppLifecycleObserver, val factory: GoogleBillingWrapper.Factory, val createBillingClient: (PurchasesUpdatedListener) -> BillingClient = {
BillingClient
.newBuilder(context)
.setListener(it)
.enablePendingPurchases(
PendingPurchasesParams.newBuilder().enableOneTimeProducts().build(),
).build()
}) : PurchasesUpdatedListener, BillingClientStateListener, Billing(source)
Constructors
Link copied to clipboard
constructor(context: Context, ioScope: IOScope, appLifecycleObserver: AppLifecycleObserver, factory: GoogleBillingWrapper.Factory, createBillingClient: (PurchasesUpdatedListener) -> BillingClient = {
BillingClient
.newBuilder(context)
.setListener(it)
.enablePendingPurchases(
PendingPurchasesParams.newBuilder().enableOneTimeProducts().build(),
).build()
})
Properties
Functions
Link copied to clipboard
Gets the StoreProduct(s) for the given list of product ids for all types.
Link copied to clipboard
Get the latest transaction from the purchaseResults flow.
Link copied to clipboard
Fetches the Play Store's com.android.billingclient.api.BillingConfig to learn the country of the user's Play Store account. Waits for the billing client to connect if it hasn't yet; resolves to null if billing is unavailable or the fetch fails.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard