GoogleBillingWrapper

class GoogleBillingWrapper(val context: Context, val ioScope: IOScope, val appLifecycleObserver: AppLifecycleObserver, val factory: GoogleBillingWrapper.Factory) : PurchasesUpdatedListener, BillingClientStateListener, Billing(source)

Constructors

Link copied to clipboard
constructor(context: Context, ioScope: IOScope, appLifecycleObserver: AppLifecycleObserver, factory: GoogleBillingWrapper.Factory)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
var billingClient: BillingClient?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val purchaseResults: MutableStateFlow<InternalPurchaseResult?>

Functions

Link copied to clipboard
open suspend override fun awaitGetProducts(fullProductIds: Set<String>): Set<StoreProduct>

Gets the StoreProduct(s) for the given list of product ids for all types.

Link copied to clipboard
open suspend override fun consume(purchaseToken: String): Result<String>
Link copied to clipboard
open suspend override fun getLatestTransaction(factory: StoreTransactionFactory): StoreTransaction?

Get the latest transaction from the purchaseResults flow.

Link copied to clipboard
open override fun onBillingServiceDisconnected()
Link copied to clipboard
open override fun onBillingSetupFinished(billingResult: BillingResult)
Link copied to clipboard
open override fun onPurchasesUpdated(result: BillingResult, purchases: MutableList<Purchase>?)
Link copied to clipboard
open suspend override fun queryAllPurchases(): List<Purchase>
Link copied to clipboard
Link copied to clipboard
fun startConnectionOnMainThread(delayMilliseconds: Long = 0)
Link copied to clipboard
fun withConnectedClient(receivingFunction: BillingClient.() -> Unit)