DialogPreference.TargetFragment


public interface DialogPreference.TargetFragment

Known direct subclasses
PreferenceFragmentCompat

A PreferenceFragmentCompat is the entry point to using the Preference library.

PreferenceFragment

This class is deprecated.

Use PreferenceFragmentCompat instead

Known indirect subclasses
BaseLeanbackPreferenceFragmentCompat

This fragment provides a preference fragment with leanback-style behavior, suitable for embedding into broader UI elements.

BaseLeanbackPreferenceFragment

This class is deprecated.

Use BaseLeanbackPreferenceFragmentCompat

LeanbackPreferenceFragmentCompat

This fragment provides a fully decorated leanback-style preference fragment, including a list background and header.

LeanbackPreferenceFragment

This class is deprecated.

Use LeanbackPreferenceFragmentCompat


Interface for PreferenceFragmentCompats to implement to allow DialogPreferences to find the preference that launched the dialog.

Summary

Public methods

abstract @Nullable T

Finds a Preference with the given key.

Public methods

findPreference

Added in 1.1.0
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 Preference to retrieve

Returns
@Nullable T

The Preference with the key, or null

See also
findPreference