Udostępnij za pośrednictwem


UiAutomation.ExecuteAndWaitForEvent 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);
[<Android.Runtime.Register("executeAndWaitForEvent", "(Ljava/lang/Runnable;Landroid/app/UiAutomation$AccessibilityEventFilter;J)Landroid/view/accessibility/AccessibilityEvent;", "")>]
member this.ExecuteAndWaitForEvent : Java.Lang.IRunnable * Android.App.UiAutomation.IAccessibilityEventFilter * int64 -> Android.Views.Accessibility.AccessibilityEvent

Parameters

command
IRunnable

The command to execute.

filter
UiAutomation.IAccessibilityEventFilter

Filter that recognizes the expected event.

timeoutMillis
Int64

The wait timeout in milliseconds.

Returns

Attributes

Exceptions

If the expected event is not received within the timeout.

Remarks

Java documentation for android.app.UiAutomation.executeAndWaitForEvent(java.lang.Runnable, android.app.AccessibilityEventFilter, long).

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