DialogPreference

abstract class DialogPreference : Preference
kotlin.Any
   ↳ androidx.preference.Preference
   ↳ androidx.preference.DialogPreference

A base class for Preferences that are dialog-based. When clicked, these preferences will open a dialog showing the actual preference controls.

Summary

Nested classes
abstract

Interface for PreferenceFragmentCompats to implement to allow DialogPreferences to find the preference that launched the dialog.

Inherited constants
Public constructors
<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int)

<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

<init>(context: Context!, attrs: AttributeSet!)

<init>(context: Context!)

Public methods
open Drawable!

Returns the icon to be shown on subsequent dialogs.

open Int

Returns the layout resource that is used as the content view for subsequent dialogs.

open CharSequence!

Returns the message to be shown on subsequent dialogs.

open CharSequence!

Returns the title to be shown on subsequent dialogs.

open CharSequence!

Returns the text of the negative button to be shown on subsequent dialogs.

open CharSequence!

Returns the text of the positive button to be shown on subsequent dialogs.

open Unit
setDialogIcon(dialogIcon: Drawable!)

Sets the icon of the dialog.

open Unit
setDialogIcon(dialogIconRes: Int)

Sets the icon (resource ID) of the dialog.

open Unit
setDialogLayoutResource(dialogLayoutResId: Int)

Sets the layout resource that is inflated as the View to be shown as the content view of subsequent dialogs.

open Unit
setDialogMessage(dialogMessage: CharSequence!)

Sets the message of the dialog.

open Unit
setDialogMessage(dialogMessageResId: Int)

open Unit

Sets the title of the dialog.

open Unit
setDialogTitle(dialogTitleResId: Int)

open Unit
setNegativeButtonText(negativeButtonText: CharSequence!)

Sets the text of the negative button of the dialog.

open Unit
setNegativeButtonText(negativeButtonTextResId: Int)

open Unit
setPositiveButtonText(positiveButtonText: CharSequence!)

Sets the text of the positive button of the dialog.

open Unit
setPositiveButtonText(positiveButtonTextResId: Int)

Protected methods
open Unit

Inherited functions