HistoricalChange


Data structure for "historical" pointer moves.

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

Summary

Public constructors

HistoricalChange(uptimeMillis: Long, position: Offset)
Cmn

Public functions

open String
Cmn

Public properties

Offset

The Offset of the historical pointer event, relative to the containing element.

Cmn
Long

The time of the historical pointer event, in milliseconds.

Cmn

Public constructors

HistoricalChange

HistoricalChange(uptimeMillis: Long, position: Offset)
Parameters
uptimeMillis: Long

The time of the historical pointer event, in milliseconds. In between the current and previous pointer event times.

position: Offset

The Offset of the historical pointer event, relative to the containing element.

Public functions

toString

open fun toString(): String

Public properties

position

val positionOffset

The Offset of the historical pointer event, relative to the containing element.

uptimeMillis

val uptimeMillisLong

The time of the historical pointer event, in milliseconds. In between the current and previous pointer event times.