酷店

AlibcLoginBridge.h 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * AlibcLoginBridge.h
  3. *
  4. * 阿里百川电商
  5. * 项目名称:阿里巴巴电商 AlibcTradeBiz
  6. * 版本号:3.1.1.96
  7. * 发布时间:2017-03-24
  8. * 开发团队:阿里巴巴百川商业化团队
  9. * 阿里巴巴电商SDK答疑群号:1229144682(阿里旺旺)
  10. * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved.
  11. */
  12. #import <Foundation/Foundation.h>
  13. #import <UIKit/UIKit.h>
  14. #ifndef AlibcLoginBridge_h
  15. #define AlibcLoginBridge_h
  16. @interface AlibcLoginBridge : NSObject
  17. /**
  18. 登录模块标准初始化接口
  19. */
  20. + (void)initLogin;
  21. /**
  22. 登录模块极简版初始化接口
  23. @brief 极简版没有依赖安全模块, 需要手动传入 Appkey
  24. @param appkey appkey
  25. */
  26. + (void)initLoginWithAppkey:(NSString *)appkey;
  27. + (BOOL)isLoginSvrAvaleable;
  28. + (void)showLogin:(UIViewController *)parentController
  29. successCallback:(void (^)(NSString *userID))onSuccess
  30. failedCallback:(void (^)(NSError *error))onFailure;
  31. + (void)logout;
  32. + (void)setEnvironment:(AlibcEnvironment)env;
  33. /**
  34. 是否是登陆URL
  35. */
  36. + (BOOL)isLoginURL:(NSString *)url;
  37. /**
  38. 是否是登出URL
  39. */
  40. + (BOOL)isLogoutUrl:(NSString *)url;
  41. /**
  42. 是否是手淘跳回url
  43. */
  44. + (BOOL)isTBBackUrl:(NSString *)url;
  45. /**
  46. 手淘跳转回来,拿到url调用
  47. */
  48. + (void)loginByURL:(NSURL *)url;
  49. @end
  50. #endif