billing_client_wrappers library Null safety
Classes
- BillingClient
-
This class can be used directly instead of
InAppPurchaseConnection
to call Play-specific billing APIs. - BillingClientFeatureConverter
- Serializer for BillingClientFeature.
- BillingResponseConverter
- Serializer for BillingResponse.
- BillingResultWrapper
- Params containing the response code and the debug message from the Play Billing API response.
- ProrationModeConverter
- Serializer for ProrationMode.
- PurchaseHistoryRecordWrapper
- Data structure representing a purchase history record.
- PurchasesHistoryResult
- A data struct representing the result of a purchase history.
- PurchasesResultWrapper
- A data struct representing the result of a transaction.
- PurchaseStateConverter
- Serializer for PurchaseStateWrapper.
- PurchaseWrapper
- Data structure representing a successful purchase.
- SkuDetailsResponseWrapper
-
Translation of
com.android.billingclient.api.SkuDetailsResponseListener
. - SkuDetailsWrapper
-
Dart wrapper around
com.android.billingclient.api.SkuDetails
. - SkuTypeConverter
- Serializer for SkuType.
Constants
- kInvalidBillingResultErrorMessage → const String
-
The error message shown when the map represents billing result is invalid from method channel.
'Invalid billing result map from method channel.'
- kOnPurchasesUpdated → const String
-
Method identifier for the OnPurchaseUpdated method channel method.
'PurchasesUpdatedListener#onPurchasesUpdated(int, List<Purchase>)'
Enums
- BillingClientFeature
- Features/capabilities supported by BillingClient.isFeatureSupported().
- BillingResponse
-
Possible
BillingClient
response statuses. - ProrationMode
- Enum representing the proration mode.
- PurchaseStateWrapper
- Possible state of a PurchaseWrapper.
- SkuType
- Enum representing potential SkuDetailsWrapper.types.
Typedefs
- OnBillingServiceDisconnected = void Function()
-
Callback triggered when the
BillingClientWrapper
is disconnected. - PurchasesUpdatedListener = void Function(PurchasesResultWrapper purchasesResult)
- Callback triggered by Play in response to purchase activity.