Language

Instrumentation.WaitForIdle Method

Definition

Overloads

Name Description
WaitForIdle(IRunnable)

Schedule a callback for when the application's main thread goes idle (has no more events to process).

WaitForIdle(Action)

Schedules the action for the main message queue's next idle period without waiting for it.

WaitForIdle(IRunnable)

Schedule a callback for when the application's main thread goes idle (has no more events to process).

[Android.Runtime.Register("waitForIdle", "(Ljava/lang/Runnable;)V", "GetWaitForIdle_Ljava_lang_Runnable_Handler")]
public virtual void WaitForIdle(Java.Lang.IRunnable? recipient);
[<Android.Runtime.Register("waitForIdle", "(Ljava/lang/Runnable;)V", "GetWaitForIdle_Ljava_lang_Runnable_Handler")>]
abstract member WaitForIdle : Java.Lang.IRunnable -> unit
override this.WaitForIdle : Java.Lang.IRunnable -> unit

Parameters

recipient
IRunnable

Called the next time the thread's message queue is idle.

Attributes

Remarks

Schedule a callback for when the application's main thread goes idle (has no more events to process).

Android reference for android.app.Instrumentation.waitForIdle.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

WaitForIdle(Action)

Schedules the action for the main message queue's next idle period without waiting for it.

public void WaitForIdle(Action recipient);
member this.WaitForIdle : Action -> unit

Parameters

recipient
Action

The action to invoke when the application's main message queue next becomes idle.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to