Package org.mozilla.geckoview
Class WebExtension.MetaData
Object
org.mozilla.geckoview.WebExtension.MetaData
- Enclosing class:
- WebExtension
Provides information about a
WebExtension
.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal boolean
Whether this extension is allowed to run in private browsing or not.final String
Root URL for this extension's pages.final int
Blocklist status for this extension.final String
Creator name as provided in the manifest.final String
Creator url as provided in the manifest.final String
Branding description for this extension.final int
Disabled binary flags for this extension.final boolean
Whether this extension is enabled or not.final String
Homepage url as provided in the manifest.final Image
MainImage
branding for thisWebExtension
.final boolean
Whether or not this is a recommended extension.final String
Branding name for this extension.final boolean
Whether the options page should be open in a Tab or not.final String
Options page as provided in the manifest.final String[]
Host permissions requested or granted to this extension.final String[]
API permissions requested or granted to this extension.final int
Signed status for this extension.final boolean
Whether this extension is temporary or not.final String
Version string for this extension. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
icon
MainImage
branding for thisWebExtension
. Can be used when displaying prompts. -
permissions
API permissions requested or granted to this extension.Permission identifiers match entries in the manifest, see API permissions .
-
origins
Host permissions requested or granted to this extension.See Host permissions .
-
name
Branding name for this extension. -
description
Branding description for this extension. This string will be localized using the current GeckoView language setting. -
version
Version string for this extension. -
creatorName
Creator name as provided in the manifest. -
creatorUrl
Creator url as provided in the manifest. -
homepageUrl
Homepage url as provided in the manifest. -
optionsPageUrl
Options page as provided in the manifest. -
openOptionsPageInTab
public final boolean openOptionsPageInTabWhether the options page should be open in a Tab or not. -
isRecommended
public final boolean isRecommendedWhether or not this is a recommended extension. -
blocklistState
public final int blocklistStateBlocklist status for this extension.See Add-ons that cause stability or security issues are put on a blocklist .
-
signedState
public final int signedStateSigned status for this extension. -
disabledFlags
public final int disabledFlagsDisabled binary flags for this extension.This will be either equal to
0
if the extension is enabled or will contain one or more flags fromWebExtension.DisabledFlags
.e.g. if the extension has been disabled by the user, the value in
WebExtension.DisabledFlags.USER
will be equal to1
:boolean isUserDisabled = metaData.disabledFlags & DisabledFlags.USER > 0;
-
baseUrl
Root URL for this extension's pages. Can be used to determine if a given URL belongs to this extension. -
allowedInPrivateBrowsing
public final boolean allowedInPrivateBrowsingWhether this extension is allowed to run in private browsing or not. To modify this value useWebExtensionController.setAllowedInPrivateBrowsing(org.mozilla.geckoview.WebExtension, boolean)
. -
enabled
public final boolean enabledWhether this extension is enabled or not. -
temporary
public final boolean temporaryWhether this extension is temporary or not. Temporary extensions are not retained and will be uninstalled when the browser exits.
-
-
Constructor Details
-
MetaData
protected MetaData()Override for testing.
-