CFRunLoopTimerGetContext(_:_:)
Returns the context information for a CFRunLoopTimer object.
Declaration
func CFRunLoopTimerGetContext(_ timer: CFRunLoopTimer!, _ context: UnsafeMutablePointer<CFRunLoopTimerContext>!)Parameters
- timer:
The run loop timer to examine.
- context:
A pointer to the structure into which the context information for
timeris to be copied. The information being returned is the same information passed to Cfrunlooptimercreate(_:_:_:_:_:_:_:) when creatingtimer.
Discussion
The context version number for run loop timers is currently 0. Before calling this function, you need to initialize the version member of context to 0.
See Also
CFRunLoopTimer Miscellaneous Functions
CFRunLoopTimerCreateWithHandler(_:_:_:_:_:_:)CFRunLoopTimerCreate(_:_:_:_:_:_:_:)CFRunLoopTimerDoesRepeat(_:)CFRunLoopTimerGetInterval(_:)CFRunLoopTimerGetNextFireDate(_:)CFRunLoopTimerGetOrder(_:)CFRunLoopTimerGetTypeID()CFRunLoopTimerInvalidate(_:)CFRunLoopTimerIsValid(_:)CFRunLoopTimerSetNextFireDate(_:_:)