Package org.mozilla.geckoview
Interface WebExtensionController.AddonManagerDelegate
- Enclosing class:
- WebExtensionController
public static interface WebExtensionController.AddonManagerDelegate
This delegate will be called whenever the state of an extension has changed.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
onDisabled
(WebExtension extension) Called whenever an extension has been disabled.default void
onDisabling
(WebExtension extension) Called whenever an extension is being disabled.default void
onEnabled
(WebExtension extension) Called whenever an extension has been enabled.default void
onEnabling
(WebExtension extension) Called whenever an extension is being enabled.default void
onInstallationFailed
(WebExtension extension, WebExtension.InstallException installException) Called whenever an error happened when installing a WebExtension.default void
onInstalled
(WebExtension extension) Called whenever an extension has been installed.default void
onInstalling
(WebExtension extension) Called whenever an extension is being installed.default void
onOptionalPermissionsChanged
(WebExtension extension) Called whenever optional permissions of an extension have changed.default void
onReady
(WebExtension extension) Called whenever an extension startup has been completed (and relative urls to assets packaged with the extension can be resolved into a full moz-extension url, e.g.default void
onUninstalled
(WebExtension extension) Called whenever an extension has been uninstalled.default void
onUninstalling
(WebExtension extension) Called whenever an extension is being uninstalled.
-
Method Details
-
onDisabling
Called whenever an extension is being disabled.- Parameters:
extension
- TheWebExtension
that is being disabled.
-
onOptionalPermissionsChanged
Called whenever optional permissions of an extension have changed.- Parameters:
extension
- TheWebExtension
that has optional permissions changed.
-
onDisabled
Called whenever an extension has been disabled.- Parameters:
extension
- TheWebExtension
that is being disabled.
-
onEnabling
Called whenever an extension is being enabled.- Parameters:
extension
- TheWebExtension
that is being enabled.
-
onEnabled
Called whenever an extension has been enabled.- Parameters:
extension
- TheWebExtension
that is being enabled.
-
onUninstalling
Called whenever an extension is being uninstalled.- Parameters:
extension
- TheWebExtension
that is being uninstalled.
-
onUninstalled
Called whenever an extension has been uninstalled.- Parameters:
extension
- TheWebExtension
that is being uninstalled.
-
onInstalling
Called whenever an extension is being installed.- Parameters:
extension
- TheWebExtension
that is being installed.
-
onInstalled
Called whenever an extension has been installed.- Parameters:
extension
- TheWebExtension
that is being installed.
-
onInstallationFailed
@UiThread default void onInstallationFailed(@Nullable WebExtension extension, @NonNull WebExtension.InstallException installException) Called whenever an error happened when installing a WebExtension.- Parameters:
extension
-WebExtension
which failed to be installed.installException
-WebExtension.InstallException
indicates which type of error happened.
-
onReady
Called whenever an extension startup has been completed (and relative urls to assets packaged with the extension can be resolved into a full moz-extension url, e.g. optionsPageUrl is going to be empty until the extension has reached this callback).- Parameters:
extension
- TheWebExtension
that has been fully started.
-