PointerInputChange

data class PointerInputChange
kotlin.Any
   ↳ androidx.ui.core.PointerInputChange

Describes a change that has occurred for a particular pointer, as well as how much of the change has been consumed (meaning, used by a node in the UI).

Summary

Public constructors

<init>(id: PointerId, current: PointerInputData, previous: PointerInputData, consumed: ConsumedData)

Describes a change that has occurred for a particular pointer, as well as how much of the change has been consumed (meaning, used by a node in the UI).

Extension functions

From androidx.ui.core
Boolean

Boolean

Boolean

Boolean

Boolean

PointerInputChange

PointerInputChange
PointerInputChange.consumePositionChange(consumedDx: Px, consumedDy: Px)

PxPosition

PxPosition

Boolean

Boolean

From androidx.ui.testutils
PointerInputChange
PointerInputChange.consume(dx: Float = 0f, dy: Float = 0f, downChange: Boolean = false)

PointerInputChange
PointerInputChange.moveBy(duration: Duration, dx: Float = 0f, dy: Float = 0f)

PointerInputChange
PointerInputChange.moveTo(duration: Duration, x: Float = 0f, y: Float = 0f)

PointerInputChange

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Properties

ConsumedData

PointerInputData

PointerId

PointerInputData

Public constructors

<init>

PointerInputChange(
    id: PointerId,
    current: PointerInputData,
    previous: PointerInputData,
    consumed: ConsumedData)

Describes a change that has occurred for a particular pointer, as well as how much of the change has been consumed (meaning, used by a node in the UI).

Properties

consumed

val consumed: ConsumedData

current

val current: PointerInputData

id

val id: PointerId

previous

val previous: PointerInputData