AppDelegate.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // AppDelegate.h
  3. // aiim
  4. //
  5. // Created by gan on 2025/2/27.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import <CoreData/CoreData.h>
  9. #import "Controller/login/GLoginController.h"
  10. @class AppDelegate;
  11. static AppDelegate * _Nullable app = nil;
  12. @interface AppDelegate : UIResponder <UIApplicationDelegate>
  13. @property (readonly, strong) NSPersistentContainer * _Nullable persistentContainer;
  14. @property (nonatomic, strong) UIWindow * _Nullable window;
  15. @property (nonatomic) BOOL isLogin;
  16. @property (nonatomic, assign) BOOL shouldShowLock; // 是否需要显示锁屏
  17. @property (nonatomic, assign) BOOL isLock; // 标记是否为应用启动
  18. @property (nonatomic, assign, readonly) BOOL isReachable;
  19. @property (nonatomic) BOOL isJitsiMeet;
  20. + (id _Nullable )sharedInstance;
  21. -(void)startJSCall:(NSString *_Nonnull)chatId room:(NSString *_Nonnull)roomId isCaller:(BOOL)isCaller audioOnly:(BOOL)audioOnly;
  22. -(void)floadinSmWindow:(NSInteger )type;
  23. - (void)saveContext;
  24. +(void)closeVoip;
  25. +(void)JitsiMeetState:(BOOL)state;
  26. +(void)unlockAPP;
  27. +(void)changeFloadViewState:(BOOL)state;
  28. - (void)resetAddFriendBadgeCount;
  29. - (void)updateBadgeCount:(NSInteger)badgeCount;
  30. @end