blob: 0382b7f67e061d8d6ab18afe4227e74bb03549be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
//
// SDLTimer.h
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface SDLTimer : NSObject
@property (copy, nonatomic, nullable) void (^elapsedBlock)(void);
@property (copy, nonatomic, nullable) void (^canceledBlock)(void);
@property (assign, nonatomic) float duration;
- (instancetype)init;
- (instancetype)initWithDuration:(float)duration __deprecated;
- (instancetype)initWithDuration:(float)duration repeat:(BOOL)repeat;
- (void)start;
- (void)cancel;
@end
NS_ASSUME_NONNULL_END
|