Added in API level 4

AccessibilityEventSource

interface AccessibilityEventSource
android.view.accessibility.AccessibilityEventSource

This interface is implemented by classes source of AccessibilityEvents.

Summary

Public methods
abstract Unit

Handles the request for sending an AccessibilityEvent given the event type.

abstract Unit

Handles the request for sending an AccessibilityEvent.

Public methods

sendAccessibilityEvent

Added in API level 4
abstract fun sendAccessibilityEvent(eventType: Int): Unit

Handles the request for sending an AccessibilityEvent given the event type. The method must first check if accessibility is on via calling AccessibilityManager.isEnabled(), obtain an AccessibilityEvent from the event pool through calling AccessibilityEvent.obtain(int), populate the event, and send it for dispatch via calling AccessibilityManager.sendAccessibilityEvent(AccessibilityEvent).

Parameters
eventType Int: The event type.

sendAccessibilityEventUnchecked

Added in API level 4
abstract fun sendAccessibilityEventUnchecked(event: AccessibilityEvent!): Unit

Handles the request for sending an AccessibilityEvent. The method does not guarantee to check if accessibility is on before sending the event for dispatch. It is responsibility of the caller to do the check via calling AccessibilityManager.isEnabled().

Parameters
event AccessibilityEvent!: The event.