PurchasesUpdatedListener typedef
PurchasesUpdatedListener =
void Function(PurchasesResultWrapper purchasesResult)
Callback triggered by Play in response to purchase activity.
This callback is triggered in response to all purchase activity while an
instance of BillingClient
is active. This includes purchases initiated by
the app (BillingClient.launchBillingFlow) as well as purchases made in
Play itself while this app is open.
This does not provide any hooks for purchases made in the past. See BillingClient.queryPurchases and BillingClient.queryPurchaseHistory.
All purchase information should also be verified manually, with your server if at all possible. See "Verify a purchase".
Wraps a
PurchasesUpdatedListener
.
Implementation
typedef PurchasesUpdatedListener = void Function(
PurchasesResultWrapper purchasesResult);