ItemDelegate

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

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

If you are overriding RecyclerViewAccessibilityDelegate#getItemDelegate() but still want to keep some default behavior, you can create an instance of this class and delegate to the parent as necessary.

Summary

Public constructors

<init>(@NonNull recyclerViewDelegate: RecyclerViewAccessibilityDelegate)

Creates an item delegate for the given RecyclerViewAccessibilityDelegate.

Public methods

open Unit

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

Inherited functions

Public constructors

<init>

ItemDelegate(@NonNull recyclerViewDelegate: RecyclerViewAccessibilityDelegate)

Creates an item delegate for the given RecyclerViewAccessibilityDelegate.

Parameters
recyclerViewDelegate RecyclerViewAccessibilityDelegate: The parent RecyclerView's accessibility delegate.

Public methods

onInitializeAccessibilityNodeInfo

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

performAccessibilityAction

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