TargetFragment
interface TargetFragment
androidx.preference.DialogPreference.TargetFragment |
Interface for PreferenceFragmentCompat
s to implement to allow DialogPreference
s to find the preference that launched the dialog.
Summary
Public methods |
|
---|---|
abstract T? |
findPreference(@NonNull key: CharSequence) Finds a |
Public methods
findPreference
@Nullable abstract fun <T : Preference!> findPreference(@NonNull key: CharSequence): T?
Finds a Preference
with the given key. Returns null
if no Preference
could be found with the given key.
Parameters | |
---|---|
key |
CharSequence: The key of the Preference to retrieve |
Return | |
---|---|
T?: The Preference with the key, or null |