summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLTimer.h
blob: cba9efefa1110534770f7797b3002a2bbe20d362 (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;
- (instancetype)initWithDuration:(float)duration repeat:(BOOL)repeat;
- (void)start;
- (void)cancel;

@end

NS_ASSUME_NONNULL_END