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

ConsumedData

data class ConsumedData
kotlin.Any
   ↳ androidx.compose.ui.input.pointer.ConsumedData

Describes what aspects of, and how much of, a change has been consumed.

Summary

Public constructors
<init>(positionChange: Offset = Offset.Companion.Zero, downChange: Boolean = false)

Describes what aspects of, and how much of, a change has been consumed.

Properties
Boolean

True if a change to down or up has been consumed.

Offset

The amount of change to the position that has been consumed.

Public constructors

<init>

ConsumedData(
    positionChange: Offset = Offset.Companion.Zero,
    downChange: Boolean = false)

Describes what aspects of, and how much of, a change has been consumed.

Parameters
positionChange: Offset = Offset.Companion.Zero The amount of change to the position that has been consumed.
downChange: Boolean = false True if a change to down or up has been consumed.

Properties

downChange

var downChange: Boolean

True if a change to down or up has been consumed.

positionChange

var positionChange: Offset

The amount of change to the position that has been consumed.