AWPurchase class
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 Properties
- observer ↔ AWObserver?
-
getter/setter pair
-
platformVersion
→ Future<
String?> -
no setter
Static Methods
-
androidRestore(
) → Future< AWResponseModel< List< >AWOrder> > -
getAndroidHistoryOrderList(
) → Future< AWResponseModel< List< >AWOrder> > -
getAndroidOrderList(
) → Future< AWResponseModel< List< >AWOrder> > -
getHistoryOrderList(
AwPlatformType type) → Future< AWResponseModel< List< ?>AWOrder> > - 获取历史订单列表
-
getIosHistoryOrderList(
) → Future< AWResponseModel< List< >AWOrder> > -
getIosOrderList(
) → Future< AWResponseModel< List< >AWOrder> > -
getOrderList(
AwPlatformType type) → Future< AWResponseModel< List< ?>AWOrder> > - 获取有效订单列表
-
getResponseModel(
String result) → AWParseNativeModel -
handleOnPurchased(
MethodCall call) → dynamic -
init(
String appId, String? appUserId) → Future< AWResponseModel< bool> > -
iosRestore(
) → Future< AWResponseModel< List< >AWOrder> > -
isSuccess(
String result) → bool -
parseAndroidOrder(
dynamic result) → Future< AWResponseModel< List< >AWOrder> > -
parseIosOrder(
dynamic purchaseData, List< AWOrder> purchaseList) → Future<AWResponseModel< List< >AWOrder> > - 解析iOS返回的订单数据:供订单列表和恢复购买使用的统一方法
-
purchase(
AwPlatformType type, AWProduct product) → Future< AWResponseModel< AWOrder> ?> - 购买商品 platform 平台,1:Android,2:iOS
-
purchaseAndroid(
AWProduct product) → Future< AWResponseModel< AWOrder> > - 购买安卓的商品
-
purchaseIos(
AWProduct product) → Future< AWResponseModel< AWOrder> > - 购买iOS的商品
-
refund(
String productId) → Future< AWResponseModel< bool> > - 退款--仅供安卓
-
removeObserver(
) → void -
requestAndroidProducts(
String productType, List< String> products) → Future<AWResponseModel< List< >AWProduct> > - 请求安卓的商品信息
-
requestIosProducts(
List< String> products) → Future<AWResponseModel< List< >AWProduct> > - 请求ios的商品信息
-
requestProducts(
AwPlatformType type, String productType, List< String> productIds) → Future<AWResponseModel< List< ?>AWProduct> > - 请求商品信息 platform:平台,1:Android,2:iOS productType: 安卓使用的,inapp、subs
-
restore(
AwPlatformType type) → Future< AWResponseModel< List< ?>AWOrder> > - 恢复购买 platform:平台,1:Android,2:iOS
-
revoke(
String productId) → Future< AWResponseModel< bool> > - 退款--仅供安卓
-
setObserver(
AWObserver observer) → void