欢迎参加我们将于 6 月 3 日举行的 #Android11:Beta 版发布会

OnPreferenceDisplayDialogCallback

interface OnPreferenceDisplayDialogCallback
androidx.preference.PreferenceFragment.OnPreferenceDisplayDialogCallback

Interface that the fragment's containing activity should implement to be able to process preference items that wish to display a dialog.

Summary

Public methods

abstract Boolean

Public methods

onPreferenceDisplayDialog

abstract fun onPreferenceDisplayDialog(
    @NonNull caller: PreferenceFragment,
    pref: Preference!
): Boolean
Parameters
caller PreferenceFragment: The fragment containing the preference requesting the dialog
pref Preference!: The preference requesting the dialog
Return
Boolean true if the dialog creation has been handled