# IndirectPointerInputChange

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/IndirectPointerEvent.kt+class:androidx.compose.ui.input.indirect.IndirectPointerInputChange) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0) Common/AllAndroid/JVM
- Cmn

  ```
  class IndirectPointerInputChange
  ```

*** ** * ** ***

Represents a single pointer input change for an indirect pointer event. The coordinate space does NOT map to the screen space but to the coordinate space of the device sending the data (thus the name indirect pointer change).

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerInputChange#IndirectPointerInputChange(androidx.compose.ui.input.pointer.PointerId,kotlin.Long,androidx.compose.ui.geometry.Offset,kotlin.Boolean,kotlin.Float,kotlin.Long,androidx.compose.ui.geometry.Offset,kotlin.Boolean)( id: https://developer.android.com/reference/kotlin/androidx/compose/ui/input/pointer/PointerId, uptimeMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, position: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, pressed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, pressure: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, previousUptimeMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, previousPosition: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, previousPressed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` | Cmn |

| ### Public functions |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerInputChange#consume()()` Consumes the change event, claiming it for the caller. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerInputChange` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerInputChange#copy(androidx.compose.ui.input.pointer.PointerId,kotlin.Long,androidx.compose.ui.geometry.Offset,kotlin.Boolean,kotlin.Float,kotlin.Long,androidx.compose.ui.geometry.Offset,kotlin.Boolean,kotlin.collections.List)( id: https://developer.android.com/reference/kotlin/androidx/compose/ui/input/pointer/PointerId, uptimeMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, position: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, pressed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, pressure: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, previousUptimeMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, previousPosition: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, previousPressed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, historical: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/input/pointer/HistoricalChange> )` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerInputChange#toString()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/input/pointer/HistoricalChange>` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerInputChange#historical()` Optional high-frequency pointer moves in between the last two dispatched events. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/pointer/PointerId` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerInputChange#id()` The unique identifier for the pointer. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerInputChange#isConsumed()` Indicates whether the change was consumed or not. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerInputChange#position()` The position of the pointer on the input device (not screen). | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerInputChange#pressed()` Whether the pointer is down or up. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerInputChange#pressure()` The pressure of the pointer. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerInputChange#previousPosition()` The position of the pointer on the input device (not screen) at the previous event. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerInputChange#previousPressed()` Whether the pointer was down or up at the previous event. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerInputChange#previousUptimeMillis()` The time at which the previous event occurred. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/input/indirect/IndirectPointerInputChange#uptimeMillis()` The time at which the event occurred. | Cmn |

## Public constructors

### IndirectPointerInputChange

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

```
IndirectPointerInputChange(
    id: PointerId,
    uptimeMillis: Long,
    position: Offset,
    pressed: Boolean,
    pressure: Float,
    previousUptimeMillis: Long,
    previousPosition: Offset,
    previousPressed: Boolean
)
```

| Parameters |
|---|---|
| `id: https://developer.android.com/reference/kotlin/androidx/compose/ui/input/pointer/PointerId` | The unique identifier for the pointer. |
| `uptimeMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The time at which the event occurred. |
| `position: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | The position of the pointer on the input device (not screen). |
| `pressed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the pointer is down or up. |
| `pressure: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The pressure of the pointer. |
| `previousUptimeMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The time at which the previous event occurred. |
| `previousPosition: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | The position of the pointer on the input device (not screen) at the previous event. |
| `previousPressed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the pointer was down or up at the previous event. |

## Public functions

### consume

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

```
fun consume(): Unit
```

Consumes the change event, claiming it for the caller.

### copy

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

```
fun copy(
    id: PointerId = this.id,
    uptimeMillis: Long = this.uptimeMillis,
    position: Offset = this.position,
    pressed: Boolean = this.pressed,
    pressure: Float = this.pressure,
    previousUptimeMillis: Long = this.previousUptimeMillis,
    previousPosition: Offset = this.previousPosition,
    previousPressed: Boolean = this.previousPressed,
    historical: List<HistoricalChange> = this.historical
): IndirectPointerInputChange
```

### toString

Cmn

```
open fun toString(): String
```

## Public properties

### historical

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

```
val historical: List<HistoricalChange>
```

Optional high-frequency pointer moves in between the last two dispatched events. Can be used for extra accuracy when input rate exceeds framerate.

### id

Cmn

```
val id: PointerId
```

The unique identifier for the pointer.

### isConsumed

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

```
val isConsumed: Boolean
```

Indicates whether the change was consumed or not.

### position

Cmn

```
val position: Offset
```

The position of the pointer on the input device (not screen).

### pressed

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

```
val pressed: Boolean
```

Whether the pointer is down or up.

### pressure

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

```
val pressure: Float
```

The pressure of the pointer.

### previousPosition

Cmn

```
val previousPosition: Offset
```

The position of the pointer on the input device (not screen) at the previous event.

### previousPressed

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

```
val previousPressed: Boolean
```

Whether the pointer was down or up at the previous event.

### previousUptimeMillis

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

```
val previousUptimeMillis: Long
```

The time at which the previous event occurred.

### uptimeMillis

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

```
val uptimeMillis: Long
```

The time at which the event occurred.