LKS_ConnectionManager.h 635 B

12345678910111213141516171819202122232425262728293031
  1. #ifdef SHOULD_COMPILE_LOOKIN_SERVER
  2. //
  3. // Lookin.h
  4. // Lookin
  5. //
  6. // Created by Li Kai on 2018/8/5.
  7. // https://lookin.work
  8. //
  9. #import <UIKit/UIKit.h>
  10. extern NSString *const LKS_ConnectionDidEndNotificationName;
  11. @class LookinConnectionResponseAttachment;
  12. @interface LKS_ConnectionManager : NSObject
  13. + (instancetype)sharedInstance;
  14. @property(nonatomic, assign) BOOL applicationIsActive;
  15. - (BOOL)isConnected;
  16. - (void)respond:(LookinConnectionResponseAttachment *)data requestType:(uint32_t)requestType tag:(uint32_t)tag;
  17. - (void)pushData:(NSObject *)data type:(uint32_t)type;
  18. @end
  19. #endif /* SHOULD_COMPILE_LOOKIN_SERVER */