CFRunLoopObserver
Declaration
class CFRunLoopObserverOverview
A CFRunLoopObserver provides a general means to receive callbacks at different points within a running run loop. In contrast to sources, which fire when an asynchronous event occurs, and timers, which fire when a particular time passes, observers fire at special locations within the execution of the run loop, such as before sources are processed or before the run loop goes to sleep, waiting for an event to occur. Observers can be either one-time events or repeated every time through the run loop’s loop.
Each run loop observer can be registered in only one run loop at a time, although it can be added to multiple run loop modes within that run loop.
Topics
CFRunLoopObserver Miscellaneous Functions
CFRunLoopObserverCreateWithHandler(_:_:_:_:_:)CFRunLoopObserverCreate(_:_:_:_:_:_:)CFRunLoopObserverDoesRepeat(_:)CFRunLoopObserverGetActivities(_:)CFRunLoopObserverGetContext(_:_:)CFRunLoopObserverGetOrder(_:)CFRunLoopObserverGetTypeID()CFRunLoopObserverInvalidate(_:)CFRunLoopObserverIsValid(_:)