IndirectTouchInputModifierNode


A androidx.compose.ui.Modifier.Node that receives IndirectTouchEvents. 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.

Summary

Public functions

Unit

Invoked to notify the handler that no more calls to IndirectTouchInputModifierNode will be made, until at least new pointers exist.

Cmn
Unit

Handles IndirectTouchEvents that are dispatched to the node.

Cmn

Inherited functions

From androidx.compose.ui.node.DelegatableNode
open Unit

Invoked when the density changes for this node.

Cmn
open Unit

Invoked when the layout direction changes for this node.

Cmn

Inherited properties

From androidx.compose.ui.node.DelegatableNode
Modifier.Node

A reference of the Modifier.Node that holds this node's position in the node hierarchy.

Cmn

Public functions

onCancelIndirectTouchInput

fun onCancelIndirectTouchInput(): Unit

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

  1. Android dispatches ACTION_CANCEL to Compose.

onIndirectTouchEvent

fun onIndirectTouchEvent(event: IndirectTouchEvent, pass: PointerEventPass): Unit

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

Parameters
event: IndirectTouchEvent

The IndirectTouchEvent that has been dispatched.

pass: PointerEventPass

The PointerEventPass in which this function is being called.