LCSecundenMeter
Objective-C
@interface LCSecundenMeter : NSObject
Swift
class LCSecundenMeter : NSObject
Implemenation of timer
-
Init method
Declaration
Objective-C
- (nonnull instancetype)initWithDelay:(CGFloat)delay;Swift
init(delay: CGFloat) -
Copy init method
Declaration
Objective-C
- (nonnull instancetype)initWithSecunden:(nonnull LCSecundenMeter *)oldSecunden;Swift
init(secunden oldSecunden: LCSecundenMeter) -
Start timer
Declaration
Objective-C
- (void)launch;Swift
func launch() -
Start timer after exact number of seconds
Declaration
Objective-C
- (void)launchWithDelay:(NSTimeInterval)delay;Swift
func launch(withDelay delay: TimeInterval) -
Check if timer was fired at least one time
Declaration
Objective-C
- (BOOL)alreadyLaunched;Swift
func alreadyLaunched() -> Bool -
check if timer is expired
Declaration
Objective-C
- (BOOL)expired;Swift
func expired() -> Bool -
Number of seconds to expire in current timer
Declaration
Objective-C
- (NSTimeInterval)expireTime;Swift
func expireTime() -> TimeInterval -
Have no idea what is it for
Declaration
Objective-C
- (NSTimeInterval)currentTime;Swift
func currentTime() -> TimeInterval
LCSecundenMeter Class Reference