RKKeepAlive.h 485 B

12345678910111213141516171819202122232425
  1. //
  2. // RKKeepAlive.h
  3. // YBVideo
  4. //
  5. // Created by YB007 on 2020/7/22.
  6. // Copyright © 2020 cat. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <AVFoundation/AVFoundation.h>
  10. static NSString *const kBgTaskName = @"com.rk.root777.KeepAlive";
  11. @interface RKKeepAlive : NSObject
  12. @property(nonatomic,assign)BOOL needKeepAliveInBackground;
  13. @property(nonatomic,strong)AVAudioPlayer *player;
  14. +(instancetype)sharedKeepInstance;
  15. -(void)startAppLifeCycleMonitor;
  16. @end