Android Guides | Samples

Android.App.UiAutomation.WaitForIdle Method

Waits for the accessibility event stream to become idle, which is not to have received an accessibility event within idleTimeoutMillis.

Syntax

[Android.Runtime.Register("waitForIdle", "(JJ)V", "")]
public Void WaitForIdle (Int64 idleTimeoutMillis, Int64 globalTimeoutMillis)

Parameters

idleTimeoutMillis
The timeout in milliseconds between two events to consider the device idle.
globalTimeoutMillis
The maximal global timeout in milliseconds in which to wait for an idle state.

Exceptions

TypeReason
TimeoutExceptionIf no idle state was detected within globalTimeoutMillis.

Remarks

Waits for the accessibility event stream to become idle, which is not to have received an accessibility event within idleTimeoutMillis. The total time spent to wait for an idle accessibility event stream is bounded by the globalTimeoutMillis.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18