AppDelegate+XYShanYan.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // AppDelegate+XYShanYan.h
  3. // Starbuds
  4. //
  5. // Created by 翟玉磊 on 2019/12/11.
  6. // Copyright © 2019 翟玉磊. All rights reserved.
  7. //
  8. #import "AppDelegate.h"
  9. #define Wechat_icon @"login_weixin_icon"
  10. #define Sina_icon @"login_weibo_icon"
  11. #define QQ_icon @"login_qq_icon"
  12. #define Phone_icon @"login_phone"
  13. NS_ASSUME_NONNULL_BEGIN
  14. @interface AppDelegate (XYShanYan)
  15. /*
  16. 创蓝闪验初始化
  17. */
  18. - (void)cl_application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
  19. /// 创建快捷登录页(一键登录)
  20. - (void)createQulickLoginPageVC;
  21. /// 创建其他登录方式页 (第三方和手机验证码登录)
  22. - (void)createLoginPageVC;
  23. /// 拉取授权登录页
  24. - (void)qulickLogin;
  25. /// 微信登录
  26. - (void)wxLoginActionWithLoginType:(XY_Login_type)loginType;
  27. /// qq登录
  28. - (void)QQLoginActionWithLoginType:(XY_Login_type)loginType;
  29. /// 新浪微博登录
  30. - (void)sinaLoginActionWithLoginType:(XY_Login_type)loginType;
  31. /// 手机号验证码登录
  32. - (void)phoneCodeLoginActionWithLoginType:(XY_Login_type)loginType;
  33. /// 登录操作
  34. - (void)loginHandleSuccess:(void(^ _Nullable)(BOOL success))block;
  35. /// 退出登录 所有退出的地方都要调用此方法
  36. - (void)logoutHandleSuccess:(void(^ _Nullable)(BOOL success))block;
  37. @end
  38. NS_ASSUME_NONNULL_END