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

TextPrompt

data class TextPrompt : PromptRequest, Dismissible (source)

Value type that represents a request for an alert prompt to enter a message.

Constructors

Name Summary
<init> TextPrompt(title: String, inputLabel: String, inputValue: String, hasShownManyDialogs: Boolean = false, onDismiss: () -> Unit, onConfirm: (Boolean, String) -> Unit)
Value type that represents a request for an alert prompt to enter a message.

Properties

Name Summary
hasShownManyDialogs val hasShownManyDialogs: Boolean
tells if this page has shown multiple prompts within a short period of time.
inputLabel val inputLabel: String
the label of the field the user should fill.
inputValue val inputValue: String
the default value of the field.
onConfirm val onConfirm: (Boolean, String) -> 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
title of the dialog.