ListPreference.SimpleSummaryProvider

public static final class ListPreference.SimpleSummaryProvider
extends Object implements SummaryProvider<ListPreference>

java.lang.Object
   ↳ androidx.preference.ListPreference.SimpleSummaryProvider


A simple Preference.SummaryProvider implementation for a ListPreference. If no value has been set, the summary displayed will be 'Not set', otherwise the summary displayed will be the entry set for this preference.

Summary

Public methods

static ListPreference.SimpleSummaryProvider getInstance()

Retrieve a singleton instance of this simple Preference.SummaryProvider implementation.

CharSequence provideSummary(ListPreference preference)

Inherited methods

Public methods

getInstance

public static ListPreference.SimpleSummaryProvider getInstance ()

Retrieve a singleton instance of this simple Preference.SummaryProvider implementation.

Returns
ListPreference.SimpleSummaryProvider a singleton instance of this simple Preference.SummaryProvider implementation

provideSummary

public CharSequence provideSummary (ListPreference preference)

Parameters
preference ListPreference

Returns
CharSequence