Android APIs
public class

RecyclerViewAccessibilityDelegate

extends AccessibilityDelegateCompat
java.lang.Object
   ↳ android.support.v4.view.AccessibilityDelegateCompat
     ↳ android.support.v7.widget.RecyclerViewAccessibilityDelegate

Class Overview

The AccessibilityDelegate used by RecyclerView.

This class handles basic accessibility actions and delegates them to LayoutManager.

Summary

Public Constructors
RecyclerViewAccessibilityDelegate(RecyclerView recyclerView)
Public Methods
void onInitializeAccessibilityEvent(View host, AccessibilityEvent event)
Initializes an AccessibilityEvent with information about the the host View which is the event source.
void onInitializeAccessibilityNodeInfo(View host, AccessibilityNodeInfoCompat info)
Initializes an AccessibilityNodeInfoCompat with information about the host view.
boolean performAccessibilityAction(View host, int action, Bundle args)
Performs the specified accessibility action on the view.
[Expand]
Inherited Methods
From class android.support.v4.view.AccessibilityDelegateCompat
From class java.lang.Object

Public Constructors

public RecyclerViewAccessibilityDelegate (RecyclerView recyclerView)

Public Methods

public void onInitializeAccessibilityEvent (View host, AccessibilityEvent event)

Initializes an 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.

Parameters
host The View hosting the delegate.
event The event to initialize.

public void onInitializeAccessibilityNodeInfo (View host, AccessibilityNodeInfoCompat info)

Initializes an 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.

Parameters
host The View hosting the delegate.
info The instance to initialize.

public boolean performAccessibilityAction (View host, int action, Bundle args)

Performs the specified accessibility action on the view. For possible accessibility actions look at AccessibilityNodeInfoCompat.

The default implementation behaves as View#performAccessibilityAction(int, Bundle) for the case of no accessibility delegate been set.

Parameters
action The action to perform.
Returns
  • Whether the action was performed.