public interface

DialogPreference.TargetFragment

 androidx.preference.DialogPreference.TargetFragment

Subclasses:

PreferenceFragment, PreferenceFragmentCompat, BaseLeanbackPreferenceFragment, BaseLeanbackPreferenceFragmentCompat, LeanbackPreferenceFragment, LeanbackPreferenceFragmentCompat

Overview

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

Summary

Methods
public PreferencefindPreference(java.lang.CharSequence key)

Finds a Preference with the given key.

Methods

public Preference findPreference(java.lang.CharSequence key)

Finds a Preference with the given key. Returns null if no Preference could be found with the given key.

Parameters:

key: The key of the Preference to retrieve

Returns:

The Preference with the key, or null

See also: PreferenceGroup.findPreference(CharSequence)