InAppPurchaseIosPlatform class
An InAppPurchasePlatform
that wraps StoreKit.
This translates various StoreKit
calls and responses into the
generic plugin API.
- Inheritance
-
- Object
- PlatformInterface
- InAppPurchaseIosPlatform
Constructors
- InAppPurchaseIosPlatform()
- Creates an InAppPurchaseIosPlatform object.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
purchaseStream
→ Stream<
List< PurchaseDetails> > -
Listen to this broadcast stream to get real time update for purchases.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buyConsumable(
{required PurchaseParam purchaseParam, bool autoConsume = true}) → Future< bool> - Buy a consumable product.
-
buyNonConsumable(
{required PurchaseParam purchaseParam}) → Future< bool> - Buy a non consumable product or subscription.
-
completePurchase(
PurchaseDetails purchase) → Future< void> - Mark that purchased content has been delivered to the user.
-
countryCode(
) → Future< String> -
Returns the user's country.
inherited
-
isAvailable(
) → Future< bool> -
Returns
true
if the payment platform is ready and available. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
queryProductDetails(
Set< String> identifiers) → Future<ProductDetailsResponse> - Query the product detail list.
-
restorePurchases(
{String? applicationUserName}) → Future< void> - Restore all previous purchases.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- observer → SKTransactionObserverWrapper
-
Callback handler for transaction status changes.
no setter
Static Methods
-
registerPlatform(
) → void -
Registers this class as the default instance of
InAppPurchasePlatform
.