Function

CFRunLoopTimerGetContext

Returns the context information for a CFRunLoopTimer object.

Declaration

void CFRunLoopTimerGetContext(CFRunLoopTimerRef timer, CFRunLoopTimerContext *context);

Parameters

timer

The run loop timer to examine.

context

A pointer to the structure into which the context information for timer is to be copied. The information being returned is the same information passed to CFRunLoopTimerCreate when creating timer.

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

Creates a new CFRunLoopTimer object with a block-based handler.

CFRunLoopTimerCreate

Creates a new CFRunLoopTimer object with a function callback.

CFRunLoopTimerDoesRepeat

Returns a Boolean value that indicates whether a CFRunLoopTimer object repeats.

CFRunLoopTimerGetInterval

Returns the firing interval of a repeating CFRunLoopTimer object.

CFRunLoopTimerGetNextFireDate

Returns the next firing time for a CFRunLoopTimer object.

CFRunLoopTimerGetOrder

Returns the ordering parameter for a CFRunLoopTimer object.

CFRunLoopTimerGetTypeID

Returns the type identifier of the CFRunLoopTimer opaque type.

CFRunLoopTimerInvalidate

Invalidates a CFRunLoopTimer object, stopping it from ever firing again.

CFRunLoopTimerIsValid

Returns a Boolean value that indicates whether a CFRunLoopTimer object is valid and able to fire.

CFRunLoopTimerSetNextFireDate

Sets the next firing date for a CFRunLoopTimer object .