android-components / mozilla.components.support.webextensions / WebExtensionSupport

WebExtensionSupport

object WebExtensionSupport (source)

Provides functionality to make sure web extension related events in the Engine are reflected in the browser state by dispatching the corresponding actions to the BrowserStore.

Functions

Name Summary
initialize fun initialize(engine: Engine, store: BrowserStore, onNewTabOverride: (WebExtension?, EngineSession, String) -> Unit = null, onCloseTabOverride: (WebExtension?, String) -> Unit = null): Unit
Registers a listener for web extension related events on the provided Engine and reacts by dispatching the corresponding actions to the provided BrowserStore.

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.