UiAutomation.ExecuteAndWaitForEvent(IRunnable, UiAutomation+IAccessibilityEventFilter, Int64) UiAutomation.ExecuteAndWaitForEvent(IRunnable, UiAutomation+IAccessibilityEventFilter, Int64) Method

Definition

Executes a command and waits for a specific accessibility event up to a given wait timeout.

[Android.Runtime.Register("executeAndWaitForEvent", "(Ljava/lang/Runnable;Landroid/app/UiAutomation$AccessibilityEventFilter;J)Landroid/view/accessibility/AccessibilityEvent;", "")]
public Android.Views.Accessibility.AccessibilityEvent ExecuteAndWaitForEvent (Java.Lang.IRunnable command, Android.App.UiAutomation.IAccessibilityEventFilter filter, long timeoutMillis);
member this.ExecuteAndWaitForEvent : Java.Lang.IRunnable * Android.App.UiAutomation.IAccessibilityEventFilter * int64 -> Android.Views.Accessibility.AccessibilityEvent

Parameters

command
IRunnable IRunnable

The command to execute.

filter
UiAutomation.IAccessibilityEventFilter UiAutomation.IAccessibilityEventFilter

Filter that recognizes the expected event.

timeoutMillis
Int64 Int64

The wait timeout in milliseconds.

Returns

Exceptions

If the expected event is not received within the timeout.

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