ISupportSelectionMode

Contract for action mode implementation

Since

v1.3.0

Functions

Link copied to clipboard
abstract fun clearSelection(mode: ActionMode?)

Clears all selected items in the current context and alternative stops the current action mode mode

Link copied to clipboard
abstract fun containsItem(id: ID): Boolean

Checks if item exists in the current selection

Link copied to clipboard
abstract fun isLongSelectionClickable(view: View, decorator: ISelectionDecorator, id: ID): Boolean

Defines whether or not this current object can be consumed as a primary long click, or if in action mode should start the action mode and also select or deselect the item.

Link copied to clipboard
abstract fun isSelectionClickable(view: View, decorator: ISelectionDecorator, id: ID): Boolean

Defines whether or not this current object can be consumed as a primary click action, or if in action mode should be selected or deselected.

Link copied to clipboard
abstract fun selectAllItems(selection: List<ID>)

Selects all defined items and reflects changes on the action mode

Link copied to clipboard
abstract fun selectedItems(): List<ID>