IapClient class
Provides all APIs of Flutter IAP Plugin.
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
-
consumeOwnedPurchase(
ConsumeOwnedPurchaseReq request) → Future< ConsumeOwnedPurchaseResult> - Consumes a consumable after it is successfully delivered.
-
createPurchaseIntent(
PurchaseIntentReq request) → Future< PurchaseResultInfo> - Creates orders for products managed by the product management system (PMS), including consumables, non-consumables, and subscriptions.
-
disableLogger(
) → Future< void> - Disables HMS Plugin Method Analytics which is used for sending usage analytics of HUAWEI IAP SDK's methods to improve the service quality.
-
enableLogger(
) → Future< void> - Enables HMS Plugin Method Analytics which is used for sending usage analytics of HUAWEI IAP SDK's methods to improve the service quality.
-
enablePendingPurchase(
) → Future< String> - Enables pending purchase.
-
isEnvReady(
{bool? isSupportAppTouch}) → Future< IsEnvReadyResult> - Checks whether the currently signed-in HUAWEI ID is located in a country or region where HUAWEI IAP is available.
-
isSandboxActivated(
) → Future< IsSandboxActivatedResult> - Checks whether the signed-in HUAWEI ID and the app version meet the requirements of the sandbox testing.
-
obtainOwnedPurchaseRecord(
OwnedPurchasesReq request) → Future< OwnedPurchasesResult> - Obtains the purchase information of all consumed products or the receipts of all subscriptions.
-
obtainOwnedPurchases(
OwnedPurchasesReq request) → Future< OwnedPurchasesResult> - Queries order information of purchased products.
-
obtainProductInfo(
ProductInfoReq request) → Future< ProductInfoResult> - Obtains product details configured in AppGallery Connect.
-
startIapActivity(
StartIapActivityReq request) → Future< void> - Displays the subscription editing screen or subscription management screen of HUAWEI IAP.
Constants
- IN_APP_CONSUMABLE → const int
- Consumable.
- IN_APP_NONCONSUMABLE → const int
- Non-consumable.
- IN_APP_SUBSCRIPTION → const int
- Subscription.