com.android.billingclient.api / queryPurchasesAsync

queryPurchasesAsync

suspend fun BillingClient.queryPurchasesAsync(skuType: String): PurchasesResult
Deprecated: Use [BillingClient.queryPurchasesAsync(QueryPurchasesParams)] instead

Returns purchases details for currently owned items bought within your app.

Parameters

skuType - The type of SKU, either "inapp" or "subs"

Return
A PurchasesResult including a BillingResult and a list of Purchases when the request succeeded

suspend fun BillingClient.queryPurchasesAsync(params: QueryPurchasesParams): PurchasesResult

Returns purchases details for currently owned items bought within your app.

Parameters

params - Params of type QueryPurchasesParams required to query PurchasesResults

Return
A PurchasesResult including a BillingResult and a list of Purchases when the request succeeded