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
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
-
anySKUIDPurchased(
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 -
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
-
isSKUIDPurchased(
String skuID) → Future< bool> - Check if a specific product SKU has been purchased
-
purchaseChangeEvents(
) → Stream< PurchaseChangeEventData>