Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

PreferenceComparisonCallback

abstract class PreferenceComparisonCallback
kotlin.Any
   ↳ androidx.preference.PreferenceManager.PreferenceComparisonCallback

Callback class to be used by the androidx.recyclerview.widget.RecyclerView.Adapter associated with the PreferenceScreen, used to determine when two Preference objects are semantically and visually the same.

Summary

Public constructors

Callback class to be used by the androidx.recyclerview.widget.RecyclerView.Adapter associated with the PreferenceScreen, used to determine when two Preference objects are semantically and visually the same.

Public methods
abstract Boolean

Called to determine if two Preference objects will display the same data

abstract Boolean

Called to determine if two Preference objects represent the same item

Public constructors

<init>

PreferenceComparisonCallback()

Callback class to be used by the androidx.recyclerview.widget.RecyclerView.Adapter associated with the PreferenceScreen, used to determine when two Preference objects are semantically and visually the same.

Public methods

arePreferenceContentsTheSame

abstract fun arePreferenceContentsTheSame(
    p1: Preference!,
    p2: Preference!
): Boolean

Called to determine if two Preference objects will display the same data

Parameters
p1 Preference!: Preference object to compare
p2 Preference!: Preference object to compare
Return
Boolean true if the objects are visually identical

arePreferenceItemsTheSame

abstract fun arePreferenceItemsTheSame(
    p1: Preference!,
    p2: Preference!
): Boolean

Called to determine if two Preference objects represent the same item

Parameters
p1 Preference!: Preference object to compare
p2 Preference!: Preference object to compare
Return
Boolean true if the objects represent the same item