main library

Functions

getUser() Future<User>
initTradeAsync({bool debuggable: false, String version}) Future<InitAsyncResult>
isLogin() Future<bool>
login() Future<LoginResult>
logout() Future<Map>
{ "platform":"iOS", "result":true };
openItemDetail({String itemID, String backUrl: "", Map<String, String> extParams, TaoKeParams taoKeParams, bool needPush: false, String schemeType: "tmall_scheme", OpenType openType: OpenType.AUTO, OpenNativeFailedMode openNativeFailedMode: OpenNativeFailedMode.JUMP_H5}) Future<TradeResult>
needPush only works on iOS schemeType supports 'tmall_scheme' and 'taobao_scheme','tmall_scheme' as default By passing a non-null taoKeParams,we mean it's a TaoKe.
openUrl({String pageUrl, String backUrl: "", Map<String, String> extParams, TaoKeParams taoKeParams, bool needPush: false, String schemeType: "tmall_scheme", OpenType openType: OpenType.AUTO, OpenNativeFailedMode openNativeFailedMode: OpenNativeFailedMode.JUMP_H5}) Future<TradeResult>
needPush only works on iOS schemeType supports 'tmall_scheme' and 'taobao_scheme','tmall_scheme' as default By passing a non-null taoKeParams,we mean it's a TaoKe.
platformVersion() Future<String>