智莺生活APP的阿里百川 Flutter 插件
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

FlutterAlibcHandle.h 2.0 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. @end
  76. NS_ASSUME_NONNULL_END