to top
Android APIs
Added in API level 4
public interface

AccessibilityEventSource

android.view.accessibility.AccessibilityEventSource
Known Indirect Subclasses

Class Overview

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

? Examples
abstract void sendAccessibilityEvent(int eventType)
Handles the request for sending an AccessibilityEvent given the event type.

? Examples
abstract void sendAccessibilityEventUnchecked( AccessibilityEvent event)
Handles the request for sending an AccessibilityEvent.

Public Methods

public abstract void sendAccessibilityEvent (int eventType)

Added in API level 4

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 The event type.

public abstract void sendAccessibilityEventUnchecked (AccessibilityEvent event)

Added in API level 4

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 The event.
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.