library / org.akop.kotx.ext.app / AlertDialogBuilder

AlertDialogBuilder

class AlertDialogBuilder

Meta-builder class used to build alert dialogs.

Constructors

<init>

AlertDialogBuilder(context: Context)

Constructs a new AlertDialogBuilder.

AlertDialogBuilder(context: Context, messageResId: Int, titleResId: Int = 0)

Constructs a new AlertDialogBuilder with specified message and title.

AlertDialogBuilder(context: Context, message: String?, title: String? = null)

Constructs a new AlertDialogBuilder with specified message and title.

Properties

cancelable

var cancelable: Boolean

Whether user should be able to cancel out of the dialog.

message

var message: String?

Dialog message.

messageResId

var messageResId: Int

Dialog message string resource id.

negativeButton

val negativeButton: AlertDialogButton

Used to set caption and click handler of the dialog's negative button.

neutralButton

val neutralButton: AlertDialogButton

Used to set caption and click handler of the dialog's neutral button.

positiveButton

val positiveButton: AlertDialogButton

Used to set caption and click handler of the dialog's positive button.

title

var title: String?

Dialog title.

titleResId

var titleResId: Int

Dialog title string resource id.