added in version 27.1.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
GuidedActionDiffCallback
public
class
GuidedActionDiffCallback
extends DiffCallback<GuidedAction>
java.lang.Object | ||
↳ | android.support.v17.leanback.widget.DiffCallback<android.support.v17.leanback.widget.GuidedAction> | |
↳ | android.support.v17.leanback.widget.GuidedActionDiffCallback |
DiffCallback used for GuidedActions, see setActionsDiffCallback(DiffCallback)
.
Summary
Public constructors | |
---|---|
GuidedActionDiffCallback()
|
Public methods | |
---|---|
boolean
|
areContentsTheSame(GuidedAction oldItem, GuidedAction newItem)
Called to decide whether two items have the same data. |
boolean
|
areItemsTheSame(GuidedAction oldItem, GuidedAction newItem)
Called to decide whether two objects represent the same item. |
static
GuidedActionDiffCallback
|
getInstance()
Returns the singleton GuidedActionDiffCallback. |
Inherited methods | |
---|---|
![]()
android.support.v17.leanback.widget.DiffCallback
| |
![]()
java.lang.Object
|
Public constructors
Public methods
areContentsTheSame
added in version 27.1.0
boolean areContentsTheSame (GuidedAction oldItem, GuidedAction newItem)
Called to decide whether two items have the same data. This information is used to detect if the contents of an item have changed.
Parameters | |
---|---|
oldItem |
GuidedAction : The item in the old list. |
newItem |
GuidedAction : The item in the new list. |