onRelease
fun Modifier.onRelease(propagation: InputResult, button: PointerButton? = null, action: UiSession.(PointerEvent.Release, IntOffset) -> Unit): Modifier(source)
Subscribes to typed pointer notifications within the modifier's hit region, including local coordinates. propagation is applied immediately; action runs on the screen owner thread, on the hosting server or proxy for remote screens. Only the subscribed event variant and optional button are delivered or transmitted.
fun Modifier.onRelease(callback: UiSession.(PointerEvent.Release, IntOffset) -> InputResult): Modifier(source)
Handles every pointer release that hits this modifier's laid-out bounds.
Return
this chain with one appended active release handler.
Parameters
callback
callback receiving the typed event and modifier-local position and deciding propagation.
Throws
Runs action for every pointer release that hits this modifier and consumes the event.
Return
this chain with one appended consuming release handler.
Parameters
action
synchronous action invoked on the owning tree thread.