NamiPurchaseManager class

Encapsulates all functionality relating to purchases made on the device whether it's done via the remote Google Play Billing service or Apple StoreKit or local Nami Bypass Store service

Constructors

NamiPurchaseManager()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

allPurchases() Future<List<NamiPurchase>>
Returns a list of all purchases
anySkuPurchased(List<String> skuIDs) Future<bool>
Ask Nami if it knows if a set of product SKU IDs has been purchased
buySku(String skuId) Future<NamiPurchaseCompleteResult>
Initiate a Google Play Billing or Apple StoreKit purchase using skuId from a NamiSKU. Used by the linked paywall use case only.
clearBypassStorePurchases() Future<void>
Clears out any purchases made while bypassStore was enabled. This clears out bypassStore purchases only, it cannot clear out production purchases made on device.
consumePurchasedSku(String skuID) Future<void>
Mark a consumable IAP as processed so it can be purchased again
presentCodeRedemptionSheet() Future<void>
Call the offer code redemption sheet (Apple-only)
registerPurchasesChangedHandler() Stream<NamiPurchaseResponseHandlerData>
skuPurchased(String skuID) Future<bool>
Check if a specific product SKU has been purchased