RVS_BasicGCDTimerDelegate
public protocol RVS_BasicGCDTimerDelegate : AnyObject
This is the basic callback protocol for the general-purpose GCD timer class. It has one simple required method, and two optional methods.
-
Called periodically, as the GCDTimer repeats (or fires once). This is required.
Declaration
Swift
func basicGCDTimerCallback(_ timer: RVS_BasicGCDTimer)
Parameters
timer
The BasicGCDTimer instance that is invoking the callback.
-
basicGCDTimerValid(_:
Default implementation) This is called after the timer is initially valid (but before the first run). It is optional.
Default Implementation
The default delegate call does nothing.
Declaration
Swift
func basicGCDTimerValid(_ timer: RVS_BasicGCDTimer)
Parameters
timer
The BasicGCDTimer instance that is invoking the callback.
-
basicGCDTimerWillBecomeInvalid(_:
Default implementation) This is called just before the timer invalidates. It is optional.
Default Implementation
The default delegate call does nothing.
Declaration
Swift
func basicGCDTimerWillBecomeInvalid(_ timer: RVS_BasicGCDTimer)
Parameters
timer
The BasicGCDTimer instance that is invoking the callback.
-
basicGCDTimerSuspend(_:
Default implementation) This is called just before the timer invalidates. It is optional.
Default Implementation
The default delegate call does nothing.
Declaration
Swift
func basicGCDTimerSuspend(_ timer: RVS_BasicGCDTimer)
Parameters
timer
The BasicGCDTimer instance that is invoking the callback.
-
basicGCDTimerResume(_:
Default implementation) This is called when the timer resumes.
Default Implementation
The default delegate call does nothing.
Declaration
Swift
func basicGCDTimerResume(_ timer: RVS_BasicGCDTimer)
Parameters
timer
The BasicGCDTimer instance that is invoking the callback.