getChangePayload

open fun getChangePayload(item1: T2, item2: T2): Any(source)

When #areItemsTheSame(T2, T2) returns true} for two items and #areContentsTheSame(T2, T2) returns false for them, calls this method to get a payload about the change.

For example, if you are using with , you can return the particular field that changed in the item and your ItemAnimator can use that information to run the correct animation.

Default implementation returns null}.