bind

open override fun bind(view: View, position: Int, payloads: List<Any>, stateFlow: MutableStateFlow<ClickableItem>, selectionMode: ISupportSelectionMode<Long>?)

Called when the view needs to be setup, this could be to set click listeners, assign text, load images, e.t.c

Parameters

view

view that was inflated

position

current position

payloads

optional payloads which maybe empty

stateFlow

observable to broadcast click events

selectionMode

action mode helper or null if none was provided