onPreIndirectTouchEvent
Compose Modifier
Common
@ExperimentalIndirectTouchTypeApi
fun Modifier.onPreIndirectTouchEvent(
onPreIndirectTouchEvent: (IndirectTouchEvent) -> Boolean
): Modifier
Adding this modifier
to the modifier
parameter of a component will allow
it to intercept IndirectTouchEvent
s before a focused child receives it in
onIndirectTouchEvent
, if it (or one of its children) is focused.
Parameters
onPreIndirectTouchEvent | This callback is invoked when a user interacts with a touch input device that is not associated with a touchscreen.s It gives ancestors of a focused component the chance to intercept an IndirectTouchEvent . Return true to indicate that you consumed the event and want to stop propagation of this event. |
Returns
true if the event is consumed, false otherwise. |