clickable
fun Modifier.clickable(enabled: Boolean = true, interactionSource: MutableInteractionSource? = null, indication: Indication? = null, role: Role? = null, onLongClickLabel: String? = null, onLongClick: () -> Unit? = null, onDoubleClick: () -> Unit? = null, onClickLabel: String? = null, onClick: () -> Unit): Modifier
Interop Modifier.clickable to apply the correct clickable modifier based on the requirement for hardware input. For example if a Tv device is detected it adds support for hardware clicks from remote controls.
Since
0.2.0
Parameters
enabled
Whether the click action handling is enabled.
interactionSource
The interaction source to emit interaction events to.
indication
Optional indication to apply with the clickable.
role
The Role of the associated user interface element, typically used by Accessiblity services.
onLongClickLabel
Optional text label used by accessibility services to describe the long-press action.
onLongClick
Optional callback to handle long click events.
onDoubleClick
Optional callback to handle double click events.
onClickLabel
Optional text label used by accessibility services to describe the click action.
onClick
Callback when the element is clicked.