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

Alert

data class Alert : PromptRequest, Dismissible (source)

Value type that represents a request for an alert prompt.

Constructors

Name Summary
<init> Alert(title: String, message: String, hasShownManyDialogs: Boolean = false, onDismiss: () -> Unit, onConfirm: (Boolean) -> Unit)
Value type that represents a request for an alert 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.
onConfirm val onConfirm: (Boolean) -> Unit
tells the web page if it should continue showing alerts or not.
onDismiss val onDismiss: () -> Unit
callback to let the page know the user dismissed the dialog.
title val title: String
of the dialog.