IndirectPointerInputChange


Represents a single pointer input change for an indirect touch event.

Summary

Public constructors

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

Public functions

Unit

Consumes the change event, claiming it for the caller.

Cmn
open String
Cmn

Public properties

PointerId

The unique identifier for the pointer.

Cmn
Boolean

Indicates whether the change was consumed or not.

Cmn
Offset

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

Cmn
Boolean

Whether the pointer is down or up.

Cmn
Float

The pressure of the pointer.

Cmn
Offset

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

Cmn
Boolean

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

Cmn
Long

The time at which the previous event occurred.

Cmn
Long

The time at which the event occurred.

Cmn

Public constructors

IndirectPointerInputChange

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

The unique identifier for the pointer.

uptimeMillis: Long

The time at which the event occurred.

position: Offset

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

pressed: Boolean

Whether the pointer is down or up.

pressure: Float

The pressure of the pointer.

previousUptimeMillis: Long

The time at which the previous event occurred.

previousPosition: Offset

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

previousPressed: Boolean

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

Public functions

consume

fun consume(): Unit

Consumes the change event, claiming it for the caller.

toString

open fun toString(): String

Public properties

id

val idPointerId

The unique identifier for the pointer.

isConsumed

val isConsumedBoolean

Indicates whether the change was consumed or not.

position

val positionOffset

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

pressed

val pressedBoolean

Whether the pointer is down or up.

pressure

val pressureFloat

The pressure of the pointer.

previousPosition

val previousPositionOffset

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

previousPressed

val previousPressedBoolean

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

previousUptimeMillis

val previousUptimeMillisLong

The time at which the previous event occurred.

uptimeMillis

val uptimeMillisLong

The time at which the event occurred.