diff options
Diffstat (limited to 'SmartDeviceLink/SDLTimer.h')
-rw-r--r-- | SmartDeviceLink/SDLTimer.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLTimer.h b/SmartDeviceLink/SDLTimer.h new file mode 100644 index 000000000..f9f7be3d9 --- /dev/null +++ b/SmartDeviceLink/SDLTimer.h @@ -0,0 +1,19 @@ +// +// SDLTimer.h +// + +#import <Foundation/Foundation.h> + +@interface SDLTimer : NSObject + +@property (nonatomic, copy) void (^elapsedBlock)(void); +@property (nonatomic, copy) void (^canceledBlock)(void); +@property (assign) float duration; + +- (instancetype)init; +- (instancetype)initWithDuration:(float)duration __deprecated; +- (instancetype)initWithDuration:(float)duration repeat:(BOOL)repeat; +- (void)start; +- (void)cancel; + +@end |