InAppPurchaseAndroidPlatformAddition class

Contains InApp Purchase features that are only available on PlayStore.

Constructors

InAppPurchaseAndroidPlatformAddition(BillingClientManager _billingClientManager)
Creates a InAppPurchaseAndroidPlatformAddition which uses the supplied BillingClientManager to provide Android specific features.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userChoiceDetailsStream Stream<GooglePlayUserChoiceDetails>
GooglePlayUserChoiceDetails emits each time user selects alternative billing.
latefinal

Methods

consumePurchase(PurchaseDetails purchase) Future<BillingResultWrapper>
Mark that the user has consumed a product.
createAlternativeBillingOnlyReportingDetails() Future<AlternativeBillingOnlyReportingDetailsWrapper>
The details used to report transactions made via alternative billing without user choice to use Google Play billing.
getCountryCode() Future<String>
Returns Play billing country code based on ISO-3166-1 alpha2 format.
isAlternativeBillingOnlyAvailable() Future<BillingResultWrapper>
Returns if the caller can use alternative billing only without giving the user a choice to use Play billing.
isFeatureSupported(BillingClientFeature feature) Future<bool>
Checks if the specified feature or capability is supported by the Play Store. Call this to check if a BillingClientFeature is supported by the device.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryPastPurchases({String? applicationUserName}) Future<QueryPurchaseDetailsResponse>
Query all previous purchases.
setBillingChoice(BillingChoiceMode billingChoiceMode) Future<void>
Disconnects, sets AlternativeBillingOnly to true, and reconnects to the BillingClient.
showAlternativeBillingOnlyInformationDialog() Future<BillingResultWrapper>
Shows the alternative billing only information dialog on top of the calling app.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

enablePendingPurchase bool
Whether pending purchase is enabled.
no setter

Static Methods

enablePendingPurchases() → void
Enable the InAppPurchaseConnection to handle pending purchases.