{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

HistoricalChange

@ExperimentalComposeUiApi
public final class 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(long uptimeMillis, @NonNull Offset position)

Public methods

final @NonNull Offset

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

final long

The time of the historical pointer event, in milliseconds.

@NonNull String

Public constructors

HistoricalChange

public HistoricalChange(long uptimeMillis, @NonNull Offset position)
Parameters
long uptimeMillis

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

@NonNull Offset position

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

Public methods

getPosition

public final @NonNull Offset getPosition()

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

getUptimeMillis

public final long getUptimeMillis()

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

toString

public @NonNull String toString()