이제 두 번째 Android 11 개발자 프리뷰를 사용할 수 있습니다. 테스트해 보고 의견을 공유하세요.

OnPreferenceDisplayDialogCallback

interface OnPreferenceDisplayDialogCallback
androidx.preference.PreferenceFragmentCompat.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: PreferenceFragmentCompat,
    pref: Preference!
): Boolean
Parameters
caller PreferenceFragmentCompat: 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