androidx.compose.ui.input.rotary
onRotaryScrollEvent
Function · from org.jetbrains.compose.ui:ui:1.12.2
No hand-written docs yet.
Adding this modifier``Modifier to the modifier``Modifier parameter of a component will allow it to intercept RotaryScrollEvents if it (or one of its children) is focused.
Parameters
fun Modifier.onRotaryScrollEvent(
onRotaryScrollEvent: (RotaryScrollEvent) -> Boolean,
): Modifier
onRotaryScrollEvent: (RotaryScrollEvent) -> BooleanRequired
onRotaryScrollEvent: (RotaryScrollEvent) -> BooleanRequiredThis callback is invoked when the user interacts with the rotary side button or the bezel on a wear device. While implementing this callback, return true to stop propagation of this event. If you return false, the event will be sent to this onRotaryScrollEvent's parent.