lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey
added in version 27.1.0
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

From class android.support.v17.leanback.widget.DiffCallback
From class java.lang.Object

Public constructors

GuidedActionDiffCallback

added in version 27.1.0
GuidedActionDiffCallback ()

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.

Returns
boolean True if the contents of the items are the same or false if they are different.

areItemsTheSame

added in version 27.1.0
boolean areItemsTheSame (GuidedAction oldItem, 
                GuidedAction newItem)

Called to decide whether two objects represent the same item.

Parameters
oldItem GuidedAction: The item in the old list.

newItem GuidedAction: The item in the new list.

Returns
boolean True if the two items represent the same object or false if they are different.

getInstance

added in version 27.1.0
GuidedActionDiffCallback getInstance ()

Returns the singleton GuidedActionDiffCallback.

Returns
GuidedActionDiffCallback The singleton GuidedActionDiffCallback.