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: Int, 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(timestamp: Timestamp, x: Float = 0f, y: Float = 0f)

PointerInputChange

Properties

ConsumedData

PointerInputData

Int

PointerInputData

Public constructors

<init>

PointerInputChange(
    id: Int,
    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: Int

previous

val previous: PointerInputData