androidx.compose.ui.input.indirect

IndirectPointerInputModifierNodeSince 1.10

Interface · from org.jetbrains.compose.ui:ui:1.12.2

No hand-written docs yet.

A androidx.compose.ui.Modifier.Node that receives IndirectPointerEvents. This modifier node only receives events if it is focused, or if a child is focused. If you are implementing this node, make sure to use this node with a focus modifier (such as focusTarget or focusable), or make this node also delegate to a androidx.compose.ui.focus.FocusTargetModifierNode.

interface IndirectPointerInputModifierNode : DelegatableNode

Is a

Functions

onIndirectPointerEvent

fun onIndirectPointerEvent(event: IndirectPointerEvent, pass: PointerEventPass)

Handles IndirectPointerEvents that are dispatched to the node. A node can only receive IndirectPointerEvents if it is focused, or if a child is focused.

onCancelIndirectPointerInput

fun onCancelIndirectPointerInput()

Invoked to notify the handler that no more calls to IndirectPointerInputModifierNode will be made, until at least new pointers exist. This can occur for a few reasons: 1. Android dispatches ACTION_CANCEL to Compose.

Library docs

A androidx.compose.ui.Modifier.Node that receives IndirectPointerEvents. This modifier node only receives events if it is focused, or if a child is focused. If you are implementing this node, make sure to use this node with a focus modifier (such as focusTarget or focusable), or make this node also delegate to a androidx.compose.ui.focus.FocusTargetModifierNode.