Google is committed to advancing racial equity for Black communities. See how.

PointerInputData

@Immutable data class PointerInputData
kotlin.Any
   ↳ androidx.compose.ui.input.pointer.PointerInputData

Data associated with a pointer.

Summary

Public constructors
<init>(uptime: Uptime? = null, position: Offset? = null, down: Boolean = false)

Data associated with a pointer.

Properties
Boolean

True if the at uptime the pointer was contacting the screen.

Offset?

The position of the pointer at uptime relative to element that the owning PointerInputChange is being dispatched to.

Uptime?

The time associated with this particular PointerInputData

Public constructors

<init>

PointerInputData(
    uptime: Uptime? = null,
    position: Offset? = null,
    down: Boolean = false)

Data associated with a pointer.

Parameters
uptime: Uptime? = null The time associated with this particular PointerInputData
position: Offset? = null The position of the pointer at uptime relative to element that the owning PointerInputChange is being dispatched to.
down: Boolean = false True if the at uptime the pointer was contacting the screen.

Properties

down

@Stable val down: Boolean

True if the at uptime the pointer was contacting the screen.

position

@Stable val position: Offset?

The position of the pointer at uptime relative to element that the owning PointerInputChange is being dispatched to.

uptime

@Stable val uptime: Uptime?

The time associated with this particular PointerInputData