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

uninstallWebExtension

open fun uninstallWebExtension(ext: WebExtension, onSuccess: () -> Unit = { }, onError: (String, Throwable) -> Unit = { _, _ -> }): Unit (source)

Uninstalls the provided extension from this engine.

Parameters

ext - the WebExtension to uninstall.

onSuccess - (optional) callback invoked if the extension was uninstalled successfully.

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