{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
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.
Enum Values |
|
---|---|
ITEM_TO_PLACEHOLDER |
|
PLACEHOLDER_POSITION_CHANGE |
|
PLACEHOLDER_TO_ITEM |
val DiffingChangePayload.ITEM_TO_PLACEHOLDER: DiffingChangePayload
val DiffingChangePayload.PLACEHOLDER_POSITION_CHANGE: DiffingChangePayload
val DiffingChangePayload.PLACEHOLDER_TO_ITEM: DiffingChangePayload