智莺生活APP的阿里百川 Flutter 插件
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

101 rivejä
2.1 KiB

  1. /*
  2. * @Description:
  3. * @Author: wuxing
  4. * @Date: 2019-09-02 21:26:27
  5. * @LastEditors: wuxing
  6. * @LastEditTime: 2019-09-02 22:12:43
  7. */
  8. //
  9. // FlutterAlibcHandle.h
  10. // flutter_alibc
  11. //
  12. // Created by 吴兴 on 2019/8/28.
  13. //
  14. #import <Foundation/Foundation.h>
  15. #import <Flutter/Flutter.h>
  16. NS_ASSUME_NONNULL_BEGIN
  17. @interface FlutterAlibcHandle : NSObject
  18. // 初始化
  19. /**
  20. 初始化
  21. @param call {"version","appName"}
  22. @param result {@"errorCode":"0",@"errorMessage":"success"}
  23. */
  24. - (void)initAlibc:(FlutterMethodCall *)call result:(FlutterResult)result;
  25. /**
  26. 登录淘宝
  27. @param call <#call description#>
  28. @param result <#result description#>
  29. */
  30. - (void)loginTaoBao:(FlutterMethodCall *)call result:(FlutterResult)result;
  31. /**
  32. 退出淘宝登录
  33. */
  34. - (void)loginOut;
  35. /// 淘客登录,二次授权
  36. /// @param call <#call description#>
  37. /// @param result <#result description#>
  38. - (void)taoKeLogin:(FlutterMethodCall *)call result:(FlutterResult)result;
  39. /**
  40. 通过url打开,包括h5,唤起手淘等
  41. @param call <#call description#>
  42. @param result <#result description#>
  43. */
  44. - (void)openByUrl:(FlutterMethodCall *)call result:(FlutterResult)result;
  45. /**
  46. 打开商品详情
  47. @param call <#call description#>
  48. @param result <#result description#>
  49. */
  50. - (void)openItemDetail:(FlutterMethodCall *)call result:(FlutterResult)result;
  51. /**
  52. 打开店铺
  53. @param call <#call description#>
  54. @param result <#result description#>
  55. */
  56. - (void)openShop:(FlutterMethodCall *)call result:(FlutterResult)result;
  57. /**
  58. 打开购物车
  59. @param call <#call description#>
  60. @param result <#result description#>
  61. */
  62. - (void)openCart:(FlutterMethodCall *)call result:(FlutterResult)result;
  63. /**
  64. 是否淘宝打点
  65. @param call <#call description#>
  66. @param result <#result description#>
  67. */
  68. - (void)syncForTaoke:(FlutterMethodCall *)call result:(FlutterResult)result;
  69. /**
  70. 是否使用Native AliPay
  71. @param call <#call description#>
  72. @param result <#result description#>
  73. */
  74. - (void)useAlipayNative:(FlutterMethodCall *)call result:(FlutterResult)result;
  75. - (void)getUdid:(FlutterMethodCall *)call result:(FlutterResult)result;
  76. @end
  77. NS_ASSUME_NONNULL_END