Düzenle

Aracılığıyla paylaş


CFRunLoop.RunInMode(NSString, Double, Boolean) Method

Definition

Initiates the runloop for a a particular duration of time.

public CoreFoundation.CFRunLoopExitReason RunInMode (Foundation.NSString mode, double seconds, bool returnAfterSourceHandled);
member this.RunInMode : Foundation.NSString * double * bool -> CoreFoundation.CFRunLoopExitReason

Parameters

mode
NSString

Mode to execute the runloop on.   This can be any arbitrary string.

seconds
Double

Number of seconds to execute the run loop for.   If seconds is zero, the run loop performs a single pass.

returnAfterSourceHandled
Boolean

If true, processing will return after a single source has been processed.   If false, then execution continues until the number of seconds has elapsed.

Returns

Status indicating the reason for the run loop to complete executing.

Applies to