BUTimer.h 656 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // BUTimer.h
  3. // BUAdSDK
  4. //
  5. // Created by 李盛 on 2018/6/20.
  6. // Copyright © 2018年 bytedance. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface BUTimer : NSObject
  11. @property (nonatomic, copy) NSString *runLoopMode;
  12. + (BUTimer *)timerWithTimeInterval:(NSTimeInterval)seconds
  13. target:(id)target
  14. selector:(SEL)aSelector
  15. repeats:(BOOL)repeats;
  16. - (BOOL)isValid;
  17. - (void)invalidate;
  18. - (BOOL)isScheduled;
  19. - (BOOL)scheduleNow;
  20. - (BOOL)pause;
  21. - (BOOL)resume;
  22. - (NSTimeInterval)initialTimeInterval;
  23. @end
  24. NS_ASSUME_NONNULL_END