Share via


CFRunLoop Class

Definition

Main loop implementation for Cocoa and CocoaTouch applications.

public class CFRunLoop : CoreFoundation.NativeObject
type CFRunLoop = class
    inherit NativeObject
Inheritance

Remarks

Run loops can be executed recursively.

Properties

Name Description
AllModes
Current

Active runloop for the current thread.

CurrentMode
Handle (Inherited from DisposableObject)
IsWaiting

Indicates that the run loop is currently waiting for an event.

Main

Main run loop object for the application.

ModeCommon

Represents the value associated with the constant kCFRunLoopCommonModes

ModeDefault

Represents the value associated with the constant kCFRunLoopDefaultMode

Owns (Inherited from DisposableObject)

Methods

Name Description
AddSource(CFRunLoopSource, NSString)

Adds a new source to the run loop on the specified mode.

ClearHandle() (Inherited from DisposableObject)
ContainsSource(CFRunLoopSource, NSString)

Determines whether the run loop contains the specified CFRunLoopSource on a specific mode.

Dispose() (Inherited from DisposableObject)
Dispose(Boolean) (Inherited from NativeObject)
Equals(Object) (Inherited from DisposableObject)
GetCheckedHandle() (Inherited from DisposableObject)
GetHashCode() (Inherited from DisposableObject)
InitializeHandle(NativeHandle) (Inherited from DisposableObject)
Release() (Inherited from NativeObject)
RemoveSource(CFRunLoopSource, NSString)

Removes a source from the runloop.

Retain() (Inherited from NativeObject)
Run()

Starts the CFRunLoop for the current thread.

RunInMode(NSString, Double, Boolean)

Initiates the runloop for a a particular duration of time.

RunInMode(String, Double, Boolean)
Stop()

Stops execution of this runloop.

WakeUp()

Wakes up a sleeping runloop.

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to