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

ConsumedData

public final class ConsumedData


Describes what aspects of a change has been consumed.

Summary

Public constructors

ConsumedData(boolean positionChange, boolean downChange)

Public methods

final boolean

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

final boolean

True if a position change in this event has been consumed.

final void
setDownChange(boolean downChange)
final void
setPositionChange(boolean positionChange)

Public constructors

ConsumedData

public ConsumedData(boolean positionChange, boolean downChange)
Parameters
boolean positionChange

True if a position change in this event has been consumed.

boolean downChange

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

Public methods

getDownChange

public final boolean getDownChange()

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

getPositionChange

public final boolean getPositionChange()

True if a position change in this event has been consumed.

setDownChange

public final void setDownChange(boolean downChange)
Parameters
boolean downChange

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

setPositionChange

public final void setPositionChange(boolean positionChange)
Parameters
boolean positionChange

True if a position change in this event has been consumed.