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

OnItemActivatedListener

interface OnItemActivatedListener<K : Any!>
androidx.recyclerview.selection.OnItemActivatedListener

Register an OnItemActivatedListener to be notified when an item is activated (tapped or double clicked).

Summary

Public methods

abstract Boolean

Called when an item is "activated".

Public methods

onItemActivated

abstract fun onItemActivated(@NonNull item: ItemDetailsLookup.ItemDetails<K>, @NonNull e: MotionEvent): Boolean

Called when an item is "activated". An item is activated, for example, when no selection exists and the user taps an item with her finger, or double clicks an item with a pointing device like a Mouse.

Parameters
item ItemDetailsLookup.ItemDetails<K>: details of the item.
e ItemDetailsLookup.ItemDetails<K>: the event associated with item.
Return
Boolean: true if the event was handled.