Class WebExtension.Action

Object
org.mozilla.geckoview.WebExtension.Action
Enclosing class:
WebExtension

@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