The Android Developer Challenge is back! Submit your idea before December 2.

RecyclerViewAccessibilityDelegate

open class RecyclerViewAccessibilityDelegate : AccessibilityDelegateCompat
kotlin.Any
   ↳ androidx.core.view.AccessibilityDelegateCompat
   ↳ androidx.recyclerview.widget.RecyclerViewAccessibilityDelegate

The AccessibilityDelegate used by RecyclerView.

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

Summary

Nested classes

open

The default implementation of accessibility delegate for the individual items of the RecyclerView.

Public constructors

<init>(@NonNull recyclerView: RecyclerView)

Public methods

open AccessibilityDelegateCompat

Gets the AccessibilityDelegate for an individual item in the RecyclerView.

open Unit

open Unit

open Boolean
performAccessibilityAction(host: View!, action: Int, args: Bundle!)

Inherited functions

Public constructors

<init>

RecyclerViewAccessibilityDelegate(@NonNull recyclerView: RecyclerView)

Public methods

getItemDelegate

@NonNull open fun getItemDelegate(): AccessibilityDelegateCompat

Gets the AccessibilityDelegate for an individual item in the RecyclerView. A basic item delegate is provided by default, but you can override this method to provide a custom per-item delegate. For now, returning an AccessibilityDelegateCompat as opposed to an ItemDelegate will prevent use of the ViewCompat accessibility API on item views.

onInitializeAccessibilityEvent

open fun onInitializeAccessibilityEvent(host: View!, event: AccessibilityEvent!): Unit

onInitializeAccessibilityNodeInfo

open fun onInitializeAccessibilityNodeInfo(host: View!, info: AccessibilityNodeInfoCompat!): Unit

performAccessibilityAction

open fun performAccessibilityAction(host: View!, action: Int, args: Bundle!): Boolean