OnItemActivatedListener


interface OnItemActivatedListener<K>


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

Parameters
<K>

Selection key type. @see StorageStrategy for supported types.

Summary

Public functions

Boolean

Called when an item is "activated".

Public functions

onItemActivated

Added in 1.0.0
fun onItemActivated(item: ItemDetailsLookup.ItemDetails<K!>, 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: MotionEvent

the event associated with item.

Returns
Boolean

true if the event was handled.