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

DiffingChangePayload

{% setvar page_path %}androidx/paging/DiffingChangePayload.html{% endsetvar %} {% setvar can_switch %}1{% endsetvar %} {% include "reference/_kotlin_switcher2.md" %}

enum DiffingChangePayload


Payloads used to dispatch change events. Could become a public API post 3.0 in case developers want to handle it more effectively.

Sending these change payloads is critical for the common case where DefaultItemAnimator won't animate them and re-use the same view holder if possible.

Summary

Enum Values

ITEM_TO_PLACEHOLDER
PLACEHOLDER_POSITION_CHANGE
PLACEHOLDER_TO_ITEM

Public properties

String
Int

Enum Values

ITEM_TO_PLACEHOLDER

val DiffingChangePayload.ITEM_TO_PLACEHOLDERDiffingChangePayload

PLACEHOLDER_POSITION_CHANGE

val DiffingChangePayload.PLACEHOLDER_POSITION_CHANGEDiffingChangePayload

PLACEHOLDER_TO_ITEM

val DiffingChangePayload.PLACEHOLDER_TO_ITEMDiffingChangePayload

Public properties

name

val nameString

ordinal

val ordinalInt