# EditTextPreference.SimpleSummaryProvider

Artifact: [androidx.preference:preference](https://developer.android.com/jetpack/androidx/releases/preference) [View Source](https://cs.android.com/search?q=file:androidx/preference/EditTextPreference.java+class:androidx.preference.EditTextPreference.SimpleSummaryProvider) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/preference#1.1.0)

*** ** * ** ***


```
public final class EditTextPreference.SimpleSummaryProvider implements Preference.SummaryProvider<EditTextPreference>
```

<br />

*** ** * ** ***

A simple `https://developer.android.com/reference/androidx/preference/Preference.SummaryProvider` implementation for an `https://developer.android.com/reference/androidx/preference/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 @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/preference/EditTextPreference.SimpleSummaryProvider` | `https://developer.android.com/reference/androidx/preference/EditTextPreference.SimpleSummaryProvider#getInstance()()` Retrieve a singleton instance of this simple `https://developer.android.com/reference/androidx/preference/Preference.SummaryProvider` implementation. |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/preference/EditTextPreference.SimpleSummaryProvider#provideSummary(androidx.preference.EditTextPreference)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/preference/EditTextPreference preference)` Called whenever `https://developer.android.com/reference/androidx/preference/Preference#getSummary()` is called on this preference. |

## Public methods

### getInstance

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/preference#1.1.0)

```
public static @NonNull EditTextPreference.SimpleSummaryProvider getInstance()
```

Retrieve a singleton instance of this simple `https://developer.android.com/reference/androidx/preference/Preference.SummaryProvider` implementation.

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/preference/EditTextPreference.SimpleSummaryProvider` | a singleton instance of this simple `https://developer.android.com/reference/androidx/preference/Preference.SummaryProvider` implementation |

### provideSummary

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/preference#1.1.0)

```
public @Nullable CharSequence provideSummary(@NonNull EditTextPreference preference)
```

Called whenever `https://developer.android.com/reference/androidx/preference/Preference#getSummary()` is called on this preference.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/preference/EditTextPreference preference` | This preference |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | A CharSequence that will be displayed as the summary for this preference |