Most visited

Recently visited

Added in API level 4

AccessibilityEventSource

public interface AccessibilityEventSource

android.view.accessibility.AccessibilityEventSource
Known Indirect Subclasses


该接口由 AccessibilityEvent的源类实现。

Developer Guides

有关使应用程序可访问的更多信息,请阅读 Accessibility开发人员指南。

Summary

Public methods

abstract void sendAccessibilityEvent(int eventType)

处理给定事件类型的发送 AccessibilityEvent的请求。

abstract void sendAccessibilityEventUnchecked(AccessibilityEvent event)

处理发送 AccessibilityEvent的请求。

Public methods

sendAccessibilityEvent

Added in API level 4
void sendAccessibilityEvent (int eventType)

在给定事件类型的情况下处理发送AccessibilityEvent的请求。 该方法必须首先检查是否无障碍通过呼叫是AccessibilityManager.isEnabled() ,获得AccessibilityEvent从事件池通过调用AccessibilityEvent.obtain(int) ,填充事件,并通过调用发送的调度AccessibilityManager.sendAccessibilityEvent(AccessibilityEvent)

Parameters
eventType int: The event type.

也可以看看:

sendAccessibilityEventUnchecked

Added in API level 4
void sendAccessibilityEventUnchecked (AccessibilityEvent event)

处理发送AccessibilityEvent的请求。 该方法不保证在发送调度事件之前检查可访问性是否处于开启状态。 通过致电AccessibilityManager.isEnabled()进行支票是主叫方的责任。

Parameters
event AccessibilityEvent: The event.

也可以看看:

Hooray!