Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

SimpleSummaryProvider

class SimpleSummaryProvider : Preference.SummaryProvider<EditTextPreference!>
kotlin.Any
   ↳ androidx.preference.EditTextPreference.SimpleSummaryProvider

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

Summary

Public methods

static EditTextPreference.SimpleSummaryProvider!

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

CharSequence!

Public methods

getInstance

static fun getInstance(): EditTextPreference.SimpleSummaryProvider!

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

Return
EditTextPreference.SimpleSummaryProvider!: a singleton instance of this simple androidx.preference.Preference.SummaryProvider implementation

provideSummary

fun provideSummary(preference: EditTextPreference!): CharSequence!