PreferenceDialogFragment

Deprecated

Use PreferenceDialogFragmentCompat instead

Abstract base class which presents a dialog associated with a DialogPreference. Since the preference object may not be available during fragment re-creation, the necessary information for displaying the dialog is read once during the initial call to onCreate and saved/restored in the saved instance state. Custom subclasses should also follow this pattern.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Get the preference that requested this dialog.
Link copied to clipboard
open fun onClick(@NonNull dialog: DialogInterface, which: Int)
Link copied to clipboard
open fun onCreate(@Nullable savedInstanceState: Bundle)
Link copied to clipboard
open fun onCreateDialog(@Nullable savedInstanceState: Bundle): Dialog
Link copied to clipboard
abstract fun onDialogClosed(positiveResult: Boolean)
Link copied to clipboard
open fun onDismiss(@NonNull dialog: DialogInterface)
Link copied to clipboard
open fun onSaveInstanceState(@NonNull outState: Bundle)