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


class SystemWindowRequest : WindowRequest (source)

WebView-based implementation of WindowRequest.


Name Summary
<init> SystemWindowRequest(webView: <ERROR CLASS>, newEngineSession: EngineSession? = null, newWebView: <ERROR CLASS>? = null, openAsDialog: Boolean = false, triggeredByUser: Boolean = false, resultMsg: <ERROR CLASS>? = null, type: Type = WindowRequest.Type.OPEN)
WebView-based implementation of WindowRequest.


Name Summary
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.
type val type: Type
The Type of this window request, indicating whether to open or close a window.
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


Name Summary
prepare fun prepare(): EngineSession
Prepares an EngineSession for the window request. This is used to attach state (e.g. a native session or view) to the engine session.
start fun start(): Unit
Starts the window request.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.