# IndirectPointerInputModifierNode

Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/input/indirect/IndirectPointerInputModifierNode.kt+class:androidx.compose.ui.input.indirect.IndirectPointerInputModifierNode) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0) Common/AllAndroid/JVM
- Cmn

  ```
  interface IndirectPointerInputModifierNode : DelegatableNode
  ```

*** ** * ** ***

A `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.Node` that receives `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerEvent`s. 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 `https://developer.android.com/reference/kotlin/androidx/compose/ui/focus/FocusTargetModifierNode`.

## Summary

| ### Public functions |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerInputModifierNode#onCancelIndirectPointerInput()()` Invoked to notify the handler that no more calls to `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerInputModifierNode` will be made, until at least new pointers exist. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerInputModifierNode#onIndirectPointerEvent(androidx.compose.ui.input.indirect.IndirectPointerEvent,androidx.compose.ui.input.pointer.PointerEventPass)( event: https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerEvent, pass: https://developer.android.com/reference/kotlin/androidx/compose/ui/input/pointer/PointerEventPass )` Handles `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerEvent`s that are dispatched to the node. | Cmn |

### Inherited functions

From [androidx.compose.ui.node.DelegatableNode](https://developer.android.com/reference/kotlin/androidx/compose/ui/node/DelegatableNode) `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `@https://developer.android.com/reference/kotlin/androidx/annotation/EmptySuper
https://developer.android.com/reference/kotlin/androidx/compose/ui/node/DelegatableNode#onDensityChange()()`

Invoked when the density changes for this node.
Cmn `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `@https://developer.android.com/reference/kotlin/androidx/annotation/EmptySuper
https://developer.android.com/reference/kotlin/androidx/compose/ui/node/DelegatableNode#onLayoutDirectionChange()()`

Invoked when the layout direction changes for this node.
Cmn

### Inherited properties

From [androidx.compose.ui.node.DelegatableNode](https://developer.android.com/reference/kotlin/androidx/compose/ui/node/DelegatableNode) `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.Node` `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/DelegatableNode#node()`

A reference of the `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.Node` that holds this node's position in the node hierarchy.
Cmn

## Public functions

### onCancelIndirectPointerInput

Cmn Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun onCancelIndirectPointerInput(): Unit
```

Invoked to notify the handler that no more calls to `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerInputModifierNode` will be made, until at least new pointers exist. This can occur for a few reasons:

1. Android dispatches ACTION_CANCEL to Compose.

### onIndirectPointerEvent

Cmn Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun onIndirectPointerEvent(
    event: IndirectPointerEvent,
    pass: PointerEventPass
): Unit
```

Handles `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerEvent`s that are dispatched to the node. A node can only receive `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerEvent`s if it is focused, or if a child is focused.

| Parameters |
|---|---|
| `event: https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerEvent` | The `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerEvent` that has been dispatched. |
| `pass: https://developer.android.com/reference/kotlin/androidx/compose/ui/input/pointer/PointerEventPass` | The `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/pointer/PointerEventPass` in which this function is being called. |