Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

TargetFragment

interface TargetFragment
androidx.preference.DialogPreference.TargetFragment

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

Summary

Public methods
abstract T?

Finds a Preference with the given key.

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