DialogPreference.TargetFragment
public interface DialogPreference.TargetFragment
PreferenceFragmentCompat |
A PreferenceFragmentCompat is the entry point to using the Preference library. |
PreferenceFragment |
This class is deprecated. Use |
BaseLeanbackPreferenceFragmentCompat |
This fragment provides a preference fragment with leanback-style behavior, suitable for embedding into broader UI elements. |
BaseLeanbackPreferenceFragment |
This class is deprecated. |
LeanbackPreferenceFragmentCompat |
This fragment provides a fully decorated leanback-style preference fragment, including a list background and header. |
LeanbackPreferenceFragment |
This class is deprecated. |
Interface for PreferenceFragmentCompats to implement to allow DialogPreferences to find the preference that launched the dialog.
Summary
Public methods |
|
|---|---|
abstract @Nullable T |
<T extends Preference> findPreference(@NonNull CharSequence key)Finds a |
Public methods
findPreference
abstract @Nullable T <T extends Preference> findPreference(@NonNull CharSequence key)
Finds a Preference with the given key. Returns null if no Preference could be found with the given key.
| Parameters | |
|---|---|
@NonNull CharSequence key |
The key of the |
| Returns | |
|---|---|
@Nullable T |
The |
| See also | |
|---|---|
findPreference |