android-components / mozilla.components.concept.engine.window / WindowRequest


interface WindowRequest (source)

Represents a request to open or close a browser window.


Name Summary
Type enum class Type
Describes the different types of window requests.


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


Name Summary
GeckoWindowRequest class GeckoWindowRequest : WindowRequest
Gecko-based implementation of WindowRequest.
SystemWindowRequest class SystemWindowRequest : WindowRequest
WebView-based implementation of WindowRequest.