2020-02-22 15:38:54 +04:00

12 lines
456 B
Objective-C

#import <Foundation/Foundation.h>
@interface TGTimerTarget : NSObject
@property (nonatomic, weak) id target;
@property (nonatomic) SEL action;
+ (NSTimer *)scheduledMainThreadTimerWithTarget:(id)target action:(SEL)action interval:(NSTimeInterval)interval repeat:(bool)repeat;
+ (NSTimer *)scheduledMainThreadTimerWithTarget:(id)target action:(SEL)action interval:(NSTimeInterval)interval repeat:(bool)repeat runLoopModes:(NSString *)runLoopModes;
@end