public AccessibilityEvent ExecuteAndWaitForEvent (IRunnable command, UiAutomation+IAccessibilityEventFilter filter, Int64 timeoutMillis)
- The command to execute.
- Filter that recognizes the expected event.
- The wait timeout in milliseconds.
Type Reason TimeoutException If the expected event is not received within the timeout.
Executes a command and waits for a specific accessibility event up to a given wait timeout. To detect a sequence of events one can implement a filter that keeps track of seen events of the expected sequence and returns true after the last event of that sequence is received.
Note: It is caller's responsibility to recycle the returned event.
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18