Contents

CFRunLoopObserverGetContext(_:_:)

Returns the context information for a CFRunLoopObserver object.

Declaration

func CFRunLoopObserverGetContext(_ observer: CFRunLoopObserver!, _ context: UnsafeMutablePointer<CFRunLoopObserverContext>!)

Parameters

  • observer:

    The run loop observer to examine.

  • context:

    Upon return, contains the context information for observer. This is the same information passed to Cfrunloopobservercreate(_:_:_:_:_:_:) when creating observer.

Discussion

The context version number for run loop observers is currently 0. Before calling this function, you need to initialize the version member of context to 0.

See Also

CFRunLoopObserver Miscellaneous Functions