hardwareSelectable

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

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

Since

0.2.0

Parameters

selected

Whether the item is currently selected.

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.