android-components / mozilla.components.concept.engine.prompt / PromptRequest / Confirm

Confirm

data class Confirm : PromptRequest, Dismissible (source)

Value type that represents a request for showing a <a href=”https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm>confirm prompt.

The prompt can have up to three buttons, they could be positive, negative and neutral.

Constructors

Name Summary
<init> Confirm(title: String, message: String, hasShownManyDialogs: Boolean = false, positiveButtonTitle: String = "", negativeButtonTitle: String = "", neutralButtonTitle: String = "", onConfirmPositiveButton: (Boolean) -> Unit, onConfirmNegativeButton: (Boolean) -> Unit, onConfirmNeutralButton: (Boolean) -> Unit, onDismiss: () -> Unit)
Value type that represents a request for showing a <a href=”https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm>confirm prompt.

Properties

Name Summary
hasShownManyDialogs val hasShownManyDialogs: Boolean
tells if this page has shown multiple prompts within a short period of time.
message val message: String
the body of the dialog.
negativeButtonTitle val negativeButtonTitle: String
optional title for the negative button.
neutralButtonTitle val neutralButtonTitle: String
optional title for the neutral button.
onConfirmNegativeButton val onConfirmNegativeButton: (Boolean) -> Unit
callback to notify that the user has clicked the negative button.
onConfirmNeutralButton val onConfirmNeutralButton: (Boolean) -> Unit
callback to notify that the user has clicked the neutral button.
onConfirmPositiveButton val onConfirmPositiveButton: (Boolean) -> Unit
callback to notify that the user has clicked the positive button.
onDismiss val onDismiss: () -> Unit
callback to notify that the user has canceled the dialog.
positiveButtonTitle val positiveButtonTitle: String
optional title for the positive button.
title val title: String
of the dialog.