Class WebExtension.Action

Enclosing class:

@AnyThread public static class WebExtension.Action extends Object
Represents either a Browser Action or a Page Action from the WebExtension API.

Instances of this class may represent the default Action which applies to all WebExtension tabs or a tab-specific override. To reconstruct the full Action object, you can use withDefault(org.mozilla.geckoview.WebExtension.Action).

Tab specific overrides can be obtained by registering a delegate using WebExtension.SessionController.setActionDelegate(org.mozilla.geckoview.WebExtension, org.mozilla.geckoview.WebExtension.ActionDelegate), while default values can be obtained by registering a delegate using WebExtension.setActionDelegate(org.mozilla.geckoview.WebExtension.ActionDelegate).
See also