|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.support.v4.view.AccessibilityDelegateCompat
public class AccessibilityDelegateCompat

Helper for accessing View.AccessibilityDelegate introduced after
API level 4 in a backwards compatible fashion.
| Constructor Summary | |
|---|---|
AccessibilityDelegateCompat()
Creates a new instance. |
|
| Method Summary | |
|---|---|
boolean |
dispatchPopulateAccessibilityEvent(android.view.View host,
android.view.accessibility.AccessibilityEvent event)
Dispatches an AccessibilityEvent to the host View first and then
to its children for adding their text content to the event. |
AccessibilityNodeProviderCompat |
getAccessibilityNodeProvider(android.view.View host)
Gets the provider for managing a virtual view hierarchy rooted at this View and reported to AccessibilityServices
that explore the window content. |
void |
onInitializeAccessibilityEvent(android.view.View host,
android.view.accessibility.AccessibilityEvent event)
Initializes an AccessibilityEvent with information about the
the host View which is the event source. |
void |
onInitializeAccessibilityNodeInfo(android.view.View host,
AccessibilityNodeInfoCompat info)
Initializes an AccessibilityNodeInfoCompat with information about the host view. |
void |
onPopulateAccessibilityEvent(android.view.View host,
android.view.accessibility.AccessibilityEvent event)
Gives a chance to the host View to populate the accessibility event with its text content. |
boolean |
onRequestSendAccessibilityEvent(android.view.ViewGroup host,
android.view.View child,
android.view.accessibility.AccessibilityEvent event)
Called when a child of the host View has requested sending an AccessibilityEvent and gives an opportunity to the parent (the host)
to augment the event. |
boolean |
performAccessibilityAction(android.view.View host,
int action,
android.os.Bundle args)
Performs the specified accessibility action on the view. |
void |
sendAccessibilityEvent(android.view.View host,
int eventType)
Sends an accessibility event of the given type. |
void |
sendAccessibilityEventUnchecked(android.view.View host,
android.view.accessibility.AccessibilityEvent event)
Sends an accessibility event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AccessibilityDelegateCompat()
| Method Detail |
|---|
public void sendAccessibilityEvent(android.view.View host,
int eventType)
The default implementation behaves as View#sendAccessibilityEvent(int) for the case of no accessibility delegate
been set.
host - The View hosting the delegate.eventType - The type of the event to send.View#sendAccessibilityEvent(int)
public void sendAccessibilityEventUnchecked(android.view.View host,
android.view.accessibility.AccessibilityEvent event)
sendAccessibilityEvent(View, int) but takes as an argument an
empty AccessibilityEvent and does not perform a check whether
accessibility is enabled.
The default implementation behaves as
View#sendAccessibilityEventUnchecked(AccessibilityEvent) for
the case of no accessibility delegate been set.
host - The View hosting the delegate.event - The event to send.View#sendAccessibilityEventUnchecked(AccessibilityEvent)
public boolean dispatchPopulateAccessibilityEvent(android.view.View host,
android.view.accessibility.AccessibilityEvent event)
AccessibilityEvent to the host View first and then
to its children for adding their text content to the event.
The default implementation behaves as
View#dispatchPopulateAccessibilityEvent(AccessibilityEvent) for
the case of no accessibility delegate been set.
host - The View hosting the delegate.event - The event.
View#dispatchPopulateAccessibilityEvent(AccessibilityEvent)
public void onPopulateAccessibilityEvent(android.view.View host,
android.view.accessibility.AccessibilityEvent event)
The default implementation behaves as
ViewCompat#onPopulateAccessibilityEvent(AccessibilityEvent) for
the case of no accessibility delegate been set.
host - The View hosting the delegate.event - The accessibility event which to populate.ViewCompat#onPopulateAccessibilityEvent(View, AccessibilityEvent)
public void onInitializeAccessibilityEvent(android.view.View host,
android.view.accessibility.AccessibilityEvent event)
AccessibilityEvent with information about the
the host View which is the event source.
The default implementation behaves as
ViewCompat#onInitalizeAccessibilityEvent(View v, AccessibilityEvent event) for
the case of no accessibility delegate been set.
host - The View hosting the delegate.event - The event to initialize.ViewCompat#onInitializeAccessibilityEvent(View, AccessibilityEvent)
public void onInitializeAccessibilityNodeInfo(android.view.View host,
AccessibilityNodeInfoCompat info)
AccessibilityNodeInfoCompat with information about the host view.
The default implementation behaves as
ViewCompat#onInitializeAccessibilityNodeInfo(View, AccessibilityNodeInfoCompat) for
the case of no accessibility delegate been set.
host - The View hosting the delegate.info - The instance to initialize.ViewCompat#onInitializeAccessibilityNodeInfo(View, AccessibilityNodeInfoCompat)
public boolean onRequestSendAccessibilityEvent(android.view.ViewGroup host,
android.view.View child,
android.view.accessibility.AccessibilityEvent event)
AccessibilityEvent and gives an opportunity to the parent (the host)
to augment the event.
The default implementation behaves as
ViewGroupCompat#onRequestSendAccessibilityEvent(ViewGroup, View, AccessibilityEvent) for
the case of no accessibility delegate been set.
host - The View hosting the delegate.child - The child which requests sending the event.event - The event to be sent.
ViewGroupCompat#onRequestSendAccessibilityEvent(ViewGroup, View, AccessibilityEvent)public AccessibilityNodeProviderCompat getAccessibilityNodeProvider(android.view.View host)
AccessibilityServices
that explore the window content.
The default implementation behaves as
ViewCompat#getAccessibilityNodeProvider(View)
for the case of no accessibility delegate been set.
AccessibilityNodeProviderCompat
public boolean performAccessibilityAction(android.view.View host,
int action,
android.os.Bundle args)
AccessibilityNodeInfoCompat.
The default implementation behaves as
View#performAccessibilityAction(int, Bundle) for the case of
no accessibility delegate been set.
action - The action to perform.
View#performAccessibilityAction(int, Bundle)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||