android-components / mozilla.components.browser.engine.gecko / GeckoEngine

GeckoEngine

class GeckoEngine : Engine (source)

Gecko-based implementation of Engine interface.

Constructors

Name Summary
<init> GeckoEngine(context: <ERROR CLASS>, defaultSettings: Settings? = null, runtime: GeckoRuntime = GeckoRuntime.getDefault(context), executorProvider: () -> GeckoWebExecutor = { GeckoWebExecutor(runtime) }, trackingProtectionExceptionStore: TrackingProtectionExceptionStorage = TrackingProtectionExceptionFileStorage(context, runtime))
GeckoEngine(context: <ERROR CLASS>, defaultSettings: Settings? = null, runtime: GeckoRuntime = GeckoRuntime.getDefault(context), executorProvider: () -> GeckoWebExecutor = { GeckoWebExecutor(runtime) })
Gecko-based implementation of Engine interface.

Properties

Name Summary
settings val settings: Settings
See Engine.settings
trackingProtectionExceptionStore val trackingProtectionExceptionStore: TrackingProtectionExceptionStorage
Provides access to the tracking protection exception list for this engine.
version val version: EngineVersion
Returns the version of the engine as EngineVersion object.

Functions

Name Summary
clearData fun clearData(data: BrowsingData, host: String?, onSuccess: () -> Unit, onError: (Throwable) -> Unit): Unit
See Engine.clearData.
createSession fun createSession(private: Boolean): EngineSession
Creates a new Gecko-based EngineSession.
createSessionState fun createSessionState(json: <ERROR CLASS>): EngineSessionState
See Engine.createSessionState.
createView fun createView(context: <ERROR CLASS>, attrs: <ERROR CLASS>?): EngineView
Creates a new Gecko-based EngineView.
getTrackersLog fun getTrackersLog(session: EngineSession, onSuccess: (List<TrackerLog>) -> Unit, onError: (Throwable) -> Unit): Unit
Fetch a list of trackers logged for a given session .
installWebExtension fun installWebExtension(id: String, url: String, allowContentMessaging: Boolean, onSuccess: (WebExtension) -> Unit, onError: (String, Throwable) -> Unit): Unit
See Engine.installWebExtension.
name fun name(): String
Returns the name of this engine. The returned string might be used in filenames and must therefore only contain valid filename characters.
registerWebExtensionDelegate fun registerWebExtensionDelegate(webExtensionDelegate: WebExtensionDelegate): Unit
See Engine.registerWebExtensionDelegate.
speculativeConnect fun speculativeConnect(url: String): Unit
Opens a speculative connection to the host of url.

Inherited Functions

Name Summary
warmUp open fun warmUp(): Unit
Makes sure all required engine initialization logic is executed. The details are specific to individual implementations, but the following must be true: