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

WindowRequest

interface WindowRequest (source)

Represents a request to open or close a browser window.

Properties

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 window.open()).

Functions

prepare

abstract 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

abstract fun start(): Unit

Starts the window request.

Inheritors

SystemWindowRequest

class SystemWindowRequest : WindowRequest

WebView-based implementation of WindowRequest.