Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

Builder

open class Builder
kotlin.Any
   ↳ androidx.appcompat.app.AlertDialog.Builder

Summary

Public constructors
<init>(@NonNull context: Context)

Creates a builder for an alert dialog that uses the default alert dialog theme.

<init>(@NonNull context: Context, @StyleRes themeResId: Int)

Creates a builder for an alert dialog that uses an explicit theme resource.

Public methods
open AlertDialog

Creates an AlertDialog with the arguments supplied to this builder.

open Context

Returns a Context with the appropriate theme for dialogs created by this Builder.

open AlertDialog.Builder!
setAdapter(adapter: ListAdapter!, listener: OnClickListener!)

Set a list of items, which are supplied by the given ListAdapter, to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.

open AlertDialog.Builder!
setCancelable(cancelable: Boolean)

Sets whether the dialog is cancelable or not.

open AlertDialog.Builder!
setCursor(cursor: Cursor!, listener: OnClickListener!, labelColumn: String!)

Set a list of items, which are supplied by the given Cursor, to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.

open AlertDialog.Builder!
setCustomTitle(@Nullable customTitleView: View?)

Set the title using the custom view customTitleView.

open AlertDialog.Builder!
setIcon(@DrawableRes iconId: Int)

Set the resource id of the Drawable to be used in the title.

open AlertDialog.Builder!
setIcon(@Nullable icon: Drawable?)

Set the Drawable to be used in the title.

open AlertDialog.Builder!
setIconAttribute(@AttrRes attrId: Int)

Set an icon as supplied by a theme attribute.

open AlertDialog.Builder!
setInverseBackgroundForced(useInverseBackground: Boolean)

Sets the Dialog to use the inverse background, regardless of what the contents is.

open AlertDialog.Builder!
setItems(@ArrayRes itemsId: Int, listener: OnClickListener!)

Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.

open AlertDialog.Builder!
setItems(items: Array<CharSequence!>!, listener: OnClickListener!)

Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.

open AlertDialog.Builder!
setMessage(@StringRes messageId: Int)

Set the message to display using the given resource id.

open AlertDialog.Builder!
setMessage(@Nullable message: CharSequence?)

Set the message to display.

open AlertDialog.Builder!
setMultiChoiceItems(@ArrayRes itemsId: Int, checkedItems: BooleanArray!, listener: OnMultiChoiceClickListener!)

Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.

open AlertDialog.Builder!

Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.

open AlertDialog.Builder!
setMultiChoiceItems(cursor: Cursor!, isCheckedColumn: String!, labelColumn: String!, listener: OnMultiChoiceClickListener!)

Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.

open AlertDialog.Builder!