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 Boolean

open AccessibilityNodeProviderCompat?

open Unit
onInitializeAccessibilityEvent(@NonNull host: View, @NonNull event: AccessibilityEvent)

open Unit

open Unit
onPopulateAccessibilityEvent(@NonNull host: View, @NonNull event: AccessibilityEvent)

open Boolean
onRequestSendAccessibilityEvent(@NonNull host: ViewGroup, @NonNull child: View, @NonNull event: AccessibilityEvent)

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

open Unit
sendAccessibilityEvent(@NonNull host: View, eventType: Int)

open Unit
sendAccessibilityEventUnchecked(@NonNull host: View, @NonNull event: AccessibilityEvent)

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

dispatchPopulateAccessibilityEvent

open fun dispatchPopulateAccessibilityEvent(@NonNull host: View, @NonNull event: AccessibilityEvent): Boolean

getAccessibilityNodeProvider

@Nullable open fun getAccessibilityNodeProvider(@NonNull host: View): AccessibilityNodeProviderCompat?

onInitializeAccessibilityEvent

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

onInitializeAccessibilityNodeInfo

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

onPopulateAccessibilityEvent

open fun onPopulateAccessibilityEvent(@NonNull host: View, @NonNull event: AccessibilityEvent): Unit

onRequestSendAccessibilityEvent

open fun onRequestSendAccessibilityEvent(@NonNull host: ViewGroup, @NonNull child: View, @NonNull event: AccessibilityEvent): Boolean

performAccessibilityAction

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

sendAccessibilityEvent

open fun sendAccessibilityEvent(@NonNull host: View, eventType: Int): Unit

sendAccessibilityEventUnchecked

open fun sendAccessibilityEventUnchecked(@NonNull host: View, @NonNull event: AccessibilityEvent): Unit