Dialog

interface Dialog

A JavaScript dialog the page opened. Unanswered dialogs block the page.

Properties

Link copied to clipboard
abstract val message: String

The text the page passed to the dialog call.

Link copied to clipboard
abstract val type: DialogType

Which native dialog this is.

Functions

Link copied to clipboard
abstract suspend fun accept(promptText: String? = null)

Accepts the dialog, supplying promptText for a prompt(); ignored otherwise.

Link copied to clipboard
abstract suspend fun dismiss()

Dismisses the dialog, as if the user cancelled it.