Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

OnDisplayPreferenceDialogListener

interface OnDisplayPreferenceDialogListener
androidx.preference.PreferenceManager.OnDisplayPreferenceDialogListener

Interface definition for a class that will be called when a Preference requests to display a dialog.

Summary

Public methods

abstract Unit

Called when a preference in the tree requests to display a dialog.

Public methods

onDisplayPreferenceDialog

abstract fun onDisplayPreferenceDialog(preference: Preference!): Unit

Called when a preference in the tree requests to display a dialog.

Parameters
preference Preference!: The Preference object requesting the dialog