hardwareClickable

fun Modifier.hardwareClickable(enabled: Boolean = true, interactionSource: MutableInteractionSource, role: Role? = null, onLongClick: () -> Unit? = null, indication: Indication? = null, onClick: () -> Unit?): Modifier

Modifier to set up handling of click events using hardware input such as a Tv remote control.

Since

0.2.0

Parameters

enabled

Whether the click action handling is enabled.

interactionSource

The interaction source to emit interaction events to.

role

The Role of the associated user interface element, typically used by Accessiblity services.

onLongClick

Optional callback to handle long click events.

onClick

Callback when the element is clicked.