FlutterInappPurchase class

Mixed-in types

Constructors

FlutterInappPurchase.new({Platform? platform})
FlutterInappPurchase.private(Platform platform)

Properties

acknowledgePurchaseAndroid MutationAcknowledgePurchaseAndroidHandler
no setter
channel MethodChannel
no setter
checkAlternativeBillingAvailabilityAndroid MutationCheckAlternativeBillingAvailabilityAndroidHandler
Check if alternative billing is available on Android
no setter
clearTransactionIOS MutationClearTransactionIOSHandler
no setter
connectionUpdated Stream<ConnectionResult>
no setter
consumePurchaseAndroid MutationConsumePurchaseAndroidHandler
no setter
createAlternativeBillingTokenAndroid MutationCreateAlternativeBillingTokenAndroidHandler
Create alternative billing reporting token on Android
no setter
deepLinkToSubscriptions MutationDeepLinkToSubscriptionsHandler
no setter
endConnection MutationEndConnectionHandler
End connection (flutter IAP compatible)
no setter
finishTransaction MutationFinishTransactionHandler
Finish a transaction using OpenIAP generated handler signature
no setter
getActiveSubscriptions QueryGetActiveSubscriptionsHandler
Get all active subscriptions with detailed information (OpenIAP compliant) Returns an array of active subscriptions. If subscriptionIds is not provided, returns all active subscriptions. Platform-specific fields are populated based on the current platform.
no setter
getAppTransactionIOS QueryGetAppTransactionIOSHandler
no setter
getAvailablePurchases QueryGetAvailablePurchasesHandler
DSL-like request subscription method with builder pattern Get all available purchases (OpenIAP standard) Returns non-consumed purchases that are still pending acknowledgment or consumption
no setter
getPendingTransactionsIOS QueryGetPendingTransactionsIOSHandler
no setter
getPromotedProductIOS QueryGetPromotedProductIOSHandler
no setter
getStorefront QueryGetStorefrontHandler
Get the current storefront country code (unified method)
no setter
getStorefrontIOS QueryGetStorefrontIOSHandler
iOS specific: Get storefront
no setter
hasActiveSubscriptions QueryHasActiveSubscriptionsHandler
Check if the user has any active subscriptions (OpenIAP compliant) Returns true if the user has at least one active subscription, false otherwise. If subscriptionIds is provided, only checks for those specific subscriptions.
no setter
hashCode int
The hash code for this object.
no setterinherited
initConnection MutationInitConnectionHandler
Initialize connection (flutter IAP compatible)
no setter
isAndroid bool
no setter
isEligibleForIntroOfferIOS QueryIsEligibleForIntroOfferIOSHandler
no setter
isIOS bool
no setter
mutationHandlers MutationHandlers
no setter
operatingSystem String
no setter
presentCodeRedemptionSheetIOS MutationPresentCodeRedemptionSheetIOSHandler
iOS specific: Present code redemption sheet
no setter
presentExternalPurchaseLinkIOS MutationPresentExternalPurchaseLinkIOSHandler
Present external purchase link on iOS (iOS 16.0+)
no setter
presentExternalPurchaseNoticeSheetIOS MutationPresentExternalPurchaseNoticeSheetIOSHandler
Present external purchase notice sheet on iOS (iOS 18.2+)
no setter
purchaseError Stream<PurchaseResult?>
no setter
purchaseErrorListener Stream<PurchaseError>
Purchase error event stream
no setter
purchasePromoted Stream<String?>
no setter
purchaseUpdated Stream<Purchase?>
no setter
purchaseUpdatedListener Stream<Purchase>
Purchase updated event stream
no setter
queryHandlers QueryHandlers
no setter
requestPurchase MutationRequestPurchaseHandler
Request purchase (flutter IAP compatible)
no setteroverride
requestPurchaseOnPromotedProductIOS MutationRequestPurchaseOnPromotedProductIOSHandler
no setter
restorePurchases MutationRestorePurchasesHandler
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showAlternativeBillingDialogAndroid MutationShowAlternativeBillingDialogAndroidHandler
Show alternative billing information dialog on Android
no setter
showManageSubscriptionsIOS MutationShowManageSubscriptionsIOSHandler
iOS specific: Show manage subscriptions
no setter
subscriptionHandlers SubscriptionHandlers
no setter
subscriptionStatusIOS QuerySubscriptionStatusIOSHandler
no setter
syncIOS MutationSyncIOSHandler
no setter
userChoiceBillingAndroid Stream<UserChoiceBillingDetails>
User choice billing Android event stream
no setter
validateReceipt MutationValidateReceiptHandler
no setter
validateReceiptIOS QueryValidateReceiptIOSHandler
Validate receipt using StoreKit 2 (iOS only) - LOCAL TESTING ONLY
no setter

Methods

fetchProducts({required List<String> skus, ProductQueryType type = gentype.ProductQueryType.InApp}) Future<List>
Fetch products from the store
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPurchaseWithBuilder({required RequestBuilder build}) Future<void>
DSL-like request purchase method with builder pattern.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance FlutterInappPurchase
Get the singleton instance
no setter