added in version 1.0.0
belongs to Maven artifact androidx.preference:preference:1.0.0-beta01

MultiSelectListPreferenceDialogFragment

public class MultiSelectListPreferenceDialogFragment
extends PreferenceDialogFragment

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


Summary

Inherited constants

Public constructors

MultiSelectListPreferenceDialogFragment()

Public methods

static MultiSelectListPreferenceDialogFragment newInstance(String key)
void onCreate(Bundle savedInstanceState)
void onDialogClosed(boolean positiveResult)
void onSaveInstanceState(Bundle outState)

Protected methods

void onPrepareDialogBuilder(AlertDialog.Builder builder)

Prepares the dialog builder to be shown when the preference is clicked.

Inherited methods

Public constructors

MultiSelectListPreferenceDialogFragment

added in version 1.0.0
public MultiSelectListPreferenceDialogFragment ()

Public methods

newInstance

added in version 1.0.0
public static MultiSelectListPreferenceDialogFragment newInstance (String key)

Parameters
key String

Returns
MultiSelectListPreferenceDialogFragment

onCreate

public void onCreate (Bundle savedInstanceState)

Parameters
savedInstanceState Bundle

onDialogClosed

added in version 1.0.0
public void onDialogClosed (boolean positiveResult)

Parameters
positiveResult boolean

onSaveInstanceState

public void onSaveInstanceState (Bundle outState)

Parameters
outState Bundle

Protected methods

onPrepareDialogBuilder

added in version 1.0.0
protected void onPrepareDialogBuilder (AlertDialog.Builder builder)

Prepares the dialog builder to be shown when the preference is clicked. Use this to set custom properties on the dialog.

Do not AlertDialog.Builder.create() or AlertDialog.Builder.show().

Parameters
builder AlertDialog.Builder