public static interface UiAutomation.OnAccessibilityEventListener

android.app.UiAutomation.OnAccessibilityEventListener



Listener for observing the AccessibilityEvent stream.

Summary

Public methods

abstract void onAccessibilityEvent(AccessibilityEvent event)

Callback for receiving an AccessibilityEvent.

Public methods

onAccessibilityEvent

public abstract void onAccessibilityEvent (AccessibilityEvent event)

Callback for receiving an AccessibilityEvent.

Note: This method is NOT executed on the main test thread. The client is responsible for proper synchronization.

Note: It is responsibility of the client to recycle the received events to minimize object creation.

Parameters
event AccessibilityEvent: The received event.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.