android-components / mozilla.components.browser.engine.system.window / SystemWindowRequest

SystemWindowRequest

class SystemWindowRequest : WindowRequest (source)

WebView-based implementation of WindowRequest.

Constructors

<init>

SystemWindowRequest(webView: WebView, newWebView: WebView? = null, openAsDialog: Boolean = false, triggeredByUser: Boolean = false, resultMsg: Message? = null)

WebView-based implementation of WindowRequest.

Properties

openAsDialog

val openAsDialog: Boolean

whether or not the window should be opened as a dialog, defaults to false.

triggeredByUser

val triggeredByUser: Boolean

whether or not the request was triggered by the user, defaults to false.

url

val url: String

The URL which should be opened in a new window. May be empty if the request was created from JavaScript (using window.open()).

Functions

prepare

fun prepare(engineSession: EngineSession): Unit

Prepares the provided EngineSession for the window request. This is used to attach state (e.g. a native session) to the engine session.

start

fun start(): Unit

Starts the window request.