CFRunLoopTimerCallBack
Callback invoked when a CFRunLoopTimer object fires.
Declaration
typealias CFRunLoopTimerCallBack = (CFRunLoopTimer?, UnsafeMutableRawPointer?) -> VoidParameters
- timer:
The run loop timer that is firing.
- info:
The
infomember of the Cfrunlooptimercontext structure that was used when creating the run loop timer.
Discussion
If timer repeats, the run loop automatically schedules the next firing time after calling this function, unless you manually update the firing time within this callback by calling CFRunLoopTimerSetNextFireDate(_:_:). If timer does not repeat, the run loop invalidates timer.
You specify this callback when you create the timer with CFRunLoopTimerCreate(_:_:_:_:_:_:_:).