Type Alias


Callback invoked when a CFRunLoopTimer object fires.


typealias CFRunLoopTimerCallBack = (CFRunLoopTimer?, UnsafeMutableRawPointer?) -> Void



The run loop timer that is firing.


The info member of the CFRunLoopTimerContext structure that was used when creating the run loop timer.


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(_:_:_:_:_:_:_:).

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software