ListPreference.SimpleSummaryProvider


class ListPreference.SimpleSummaryProvider : Preference.SummaryProvider


A simple androidx.preference.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 functions

java-static ListPreference.SimpleSummaryProvider

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

CharSequence?

Called whenever getSummary is called on this preference.

Public functions

getInstance

Added in 1.1.0
java-static fun getInstance(): ListPreference.SimpleSummaryProvider

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

Returns
ListPreference.SimpleSummaryProvider

a singleton instance of this simple androidx.preference.Preference.SummaryProvider implementation

provideSummary

Added in 1.1.0
fun provideSummary(preference: ListPreference): CharSequence?

Called whenever getSummary is called on this preference.

Parameters
preference: ListPreference

This preference

Returns
CharSequence?

A CharSequence that will be displayed as the summary for this preference