mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-03 03:10:47 +00:00
18 lines
424 B
Objective-C
18 lines
424 B
Objective-C
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@interface MTTimer : NSObject
|
|
|
|
@property (nonatomic) NSTimeInterval timeoutDate;
|
|
|
|
- (id)initWithTimeout:(NSTimeInterval)timeout repeat:(bool)repeat completion:(dispatch_block_t)completion queue:(dispatch_queue_t)queue;
|
|
- (void)start;
|
|
- (void)fireAndInvalidate;
|
|
- (void)invalidate;
|
|
- (bool)isScheduled;
|
|
- (void)resetTimeout:(NSTimeInterval)timeout;
|
|
- (NSTimeInterval)remainingTime;
|
|
|
|
@end
|