AppDelegate.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // AppDelegate.h
  3. // Starbuds
  4. //
  5. // Created by 翟玉磊 on 2019/12/4.
  6. // Copyright © 2019 翟玉磊. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "XYMainTabBarViewController.h"
  10. @interface AppDelegate : UIResponder <UIApplicationDelegate>
  11. @property (strong, nonatomic) UIWindow *window;
  12. /// appo配置信息
  13. @property (nonatomic, readwrite, strong) XYAppConfigModel *appConfigModel;
  14. @property (nonatomic, readwrite, strong) XYMainTabBarViewController *tabbarVC;
  15. @property (nonatomic, readwrite, strong) NSData *deviceToken;
  16. /// 是否正在登录 防止多次拉取登录页
  17. @property (nonatomic, readwrite, assign) BOOL isLogin;
  18. /// 是否是审核版本
  19. @property (nonatomic, readwrite, assign) BOOL isVersionStatus;
  20. + (AppDelegate *)sharedDelegate;
  21. //// 获取当前显示的控制器
  22. - (UIViewController *)getCurrentController;
  23. - (void)dismissViewController:(void(^)(void))completion;
  24. /// 版本更新
  25. - (void)checkVersionUpdates:(BOOL)show;
  26. /// 注销账号
  27. - (BOOL)isCoolPeriod:(NSDictionary *)dataDict;
  28. /// 注销账号回调
  29. @property (nonatomic, copy) void(^XYCoolPeriodAgainLogin)(BOOL success);
  30. @end