PreferenceDialogFragment

public abstract class PreferenceDialogFragment
extends DialogFragment implements DialogInterface.OnClickListener

java.lang.Object
   ↳ android.app.Fragment
     ↳ android.app.DialogFragment
       ↳ androidx.preference.PreferenceDialogFragment


This class is 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(Bundle) and saved/restored in the saved instance state. Custom subclasses should also follow this pattern.

Summary

Constants

String ARG_KEY

This constant is deprecated. Use PreferenceDialogFragmentCompat instead

Inherited constants

Public constructors

PreferenceDialogFragment()

This constructor is deprecated. Use PreferenceDialogFragmentCompat instead

Public methods

DialogPreference getPreference()

This method is deprecated. Use PreferenceDialogFragmentCompat instead

void onClick(DialogInterface dialog, int which)

This method is deprecated. Use PreferenceDialogFragmentCompat instead

void onCreate(Bundle savedInstanceState)
Dialog onCreateDialog(Bundle savedInstanceState)
abstract void onDialogClosed(boolean positiveResult)

This method is deprecated. Use PreferenceDialogFragmentCompat instead

void onDismiss(DialogInterface dialog)
void onSaveInstanceState(Bundle outState)

Protected methods

void onBindDialogView(View view)

This method is deprecated. Use PreferenceDialogFragmentCompat instead

View onCreateDialogView(Context context)

This method is deprecated. Use PreferenceDialogFragmentCompat instead

void onPrepareDialogBuilder(AlertDialog.Builder builder)

This method is deprecated. Use PreferenceDialogFragmentCompat instead

Inherited methods