AlibcPlugin class

Constructors

AlibcPlugin()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

platformVersion Future<String>
read-only

Static Methods

initAlibc({String version, String appName}) Future<InitModel>
初始化 version:当前app版本 appName:当前app名称 result:{ errorCode, //0为初始化成功,其他为失败 errorMessage, //message }
loginOut() → dynamic
@description: 退出淘宝登录 @param {type} @return:
loginTaoBao() Future<LoginModel>
@description: 登录淘宝
openByUrl({String url, AlibcOpenType openType = AlibcOpenType.AlibcOpenTypeAuto, bool isNeedCustomNativeFailMode = false, AlibcNativeFailMode nativeFailMode = AlibcNativeFailMode.AlibcNativeFailModeNone, AlibcSchemeType schemeType = AlibcSchemeType.AlibcSchemeTmall, TaokeParams taokeParams, String backUrl}) Future<TradeResult>
@description: 通过url打开,包括h5,唤起手淘等 @param url:目标url openType:打开类型 isNeedCustomNativeFailMode:是否需要设置唤端失败策略 nativeFailMode:唤端失败策略 schemeType:唤起哪个端 taokeParams:淘客数据 backUrl: 跳转回来的url @return:
openCart({AlibcOpenType openType = AlibcOpenType.AlibcOpenTypeAuto, bool isNeedCustomNativeFailMode = false, AlibcNativeFailMode nativeFailMode = AlibcNativeFailMode.AlibcNativeFailModeNone, AlibcSchemeType schemeType = AlibcSchemeType.AlibcSchemeTmall, TaokeParams taokeParams, Map trackParam, String backUrl}) Future<TradeResult>
@description: 打开购物车 @param {type} @return:
openItemDetail({String itemID, AlibcOpenType openType = AlibcOpenType.AlibcOpenTypeAuto, bool isNeedCustomNativeFailMode = false, AlibcNativeFailMode nativeFailMode = AlibcNativeFailMode.AlibcNativeFailModeNone, AlibcSchemeType schemeType = AlibcSchemeType.AlibcSchemeTmall, TaokeParams taokeParams, Map trackParam, String backUrl}) Future<TradeResult>
@description: 打开商品详情 @param 同上 itemID 商品id,可以是真实的也可以是混淆的 isNeedPush iOS独占 @return:
openShop({String shopId, AlibcOpenType openType = AlibcOpenType.AlibcOpenTypeAuto, bool isNeedCustomNativeFailMode = false, AlibcNativeFailMode nativeFailMode = AlibcNativeFailMode.AlibcNativeFailModeNone, AlibcSchemeType schemeType = AlibcSchemeType.AlibcSchemeTmall, TaokeParams taokeParams, Map trackParam, String backUrl}) Future<TradeResult>
@description: 打开店铺 @param {type} shopId 店铺id @return:
syncForTaoke(bool isSync) → dynamic
taoKeLogin({String url, AlibcOpenType openType = AlibcOpenType.AlibcOpenTypeAuto, bool isNeedCustomNativeFailMode = false, AlibcNativeFailMode nativeFailMode = AlibcNativeFailMode.AlibcNativeFailModeNone, AlibcSchemeType schemeType = AlibcSchemeType.AlibcSchemeTaoBao, TaokeParams taokeParams, String backUrl}) Future<Map>
@description: 渠道授权,获取access_token @param {type} @return: Map<String,String>
useAlipayNative(bool isNeed) → dynamic