android-components / mozilla.components.browser.engine.gecko.window / GeckoWindowRequest

GeckoWindowRequest

class GeckoWindowRequest : WindowRequest (source)

Gecko-based implementation of WindowRequest.

Constructors

Name Summary
<init> GeckoWindowRequest(url: String = "", engineSession: GeckoEngineSession, type: Type = WindowRequest.Type.OPEN)
Gecko-based implementation of WindowRequest.

Properties

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

Functions

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.

Inherited Functions

Name Summary
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.