Added in API level 18

OnAccessibilityEventListener


interface OnAccessibilityEventListener
android.app.UiAutomation.OnAccessibilityEventListener

Listener for observing the AccessibilityEvent stream.

Summary

Public methods
abstract Unit

Callback for receiving an AccessibilityEvent.

Public methods

onAccessibilityEvent

Added in API level 18
abstract fun onAccessibilityEvent(event: AccessibilityEvent!): Unit

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.