android-components / mozilla.components.concept.engine.webextension / WebExtensionRuntime / listInstalledWebExtensions

listInstalledWebExtensions

open fun listInstalledWebExtensions(onSuccess: (List<WebExtension>) -> Unit, onError: (Throwable) -> Unit = { }): Unit (source)

Lists the currently installed web extensions in this engine.

Parameters

onSuccess - callback invoked with the list of of installed WebExtensions.

onError - (optional) callback invoked if there was an error querying the installed extensions. This callback is invoked with an UnsupportedOperationException in case the engine doesn’t have web extension support.