Since: API Level 4
public interface

AccessibilityEventSource

android.view.accessibility.AccessibilityEventSource
Known Indirect Subclasses

Class Overview

This interface is implemented by classes source of AccessibilityEvents.

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

public abstract void sendAccessibilityEvent (int eventType)

Since: 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 isEnabled(), obtain an AccessibilityEvent from the event pool through calling obtain(int), populate the event, and send it for dispatch via calling sendAccessibilityEvent(AccessibilityEvent).

Parameters
eventType The event type.

public abstract void sendAccessibilityEventUnchecked (AccessibilityEvent event)

Since: 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 isEnabled().

Parameters
event The event.