UiAutomation.ExecuteAndWaitForEvent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 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
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.