Skip to content

Most visited

Recently visited

navigation
Added in API level 4

AccessibilityEventSource

public interface AccessibilityEventSource

android.view.accessibility.AccessibilityEventSource
Known Indirect Subclasses


This interface is implemented by classes source of AccessibilityEvents.

Developer Guides

For more information about making applications accessible, read the Accessibility developer guide.

Summary

Public methods

abstract void sendAccessibilityEvent(int eventType)

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

abstract void sendAccessibilityEventUnchecked(AccessibilityEvent event)

Handles the request for sending an AccessibilityEvent.

Public methods

sendAccessibilityEvent

Added in API level 4
void sendAccessibilityEvent (int eventType)

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.

See also:

sendAccessibilityEventUnchecked

Added in API level 4
void sendAccessibilityEventUnchecked (AccessibilityEvent event)

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.

See also:

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.