ConfirmationDialogBuilder

class ConfirmationDialogBuilder abstract

Confirmation/alert dialog builder, platform dependent, used by ViewActivity.showConfirmationDialogAsync (abstract).

Note: Typescene provides a platform dependent implementation by default. You can implement your own dialog builder by extending this class and assigning a constructor reference to UITheme.ConfirmationDialogBuilder.

Constructor

(): ConfirmationDialogBuilder

.setTitle() abstract

(title: Stringable): this

Set the dialog title.

.addMessage() abstract

(message: Stringable): this

Add a block of text to be displayed as a paragraph.

.setConfirmButtonLabel() abstract

(label: Stringable): this

Set the text label of the primary confirmation button.

.setCancelButtonLabel() abstract

(label: Stringable): this

Set the text label of the cancel button.

.build() abstract

(): UIRenderableConstructor

Build a constructor for a renderable dialog with the current options, which should emit a CloseModal or Confirm event when closing the dialog.