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 booleanWhether this extension is allowed to run in private browsing or not.final StringThe link to the AMO detail page for this extension.final doubleThe average rating of this extension.final StringRoot URL for this extension's pages.final intBlocklist status for this extension.final StringCreator name as provided in the manifest.final StringCreator url as provided in the manifest.final StringBranding description for this extension.final intDisabled binary flags for this extension.final StringThe URL used to install this extension.final booleanWhether this extension is enabled or not.final StringThe full description of this extension.final String[]Granted optional data collection permissions for this extension.final String[]Granted optional origin permissions for this extension.final String[]Granted optional permissions for this extension.final StringHomepage url as provided in the manifest.final ImageMainImagebranding for thisWebExtension.final StringIndicates how the extension works with private browsing windows.final booleanWhether or not this is a recommended extension.final StringBranding name for this extension.final booleanWhether the options page should be open in a Tab or not.final String[]Optional data collection permissions for this extension.final String[]Optional origin permissions for this extension.final String[]Optional permissions for this extension.final StringOptions page as provided in the manifest.final String[]Required data collection permissions for this extension.final String[]Required origin permissions for this extension.final String[]Required permissions for this extension.final intThe review count for this extension.final StringThe link to the review page for this extension.final intSigned status for this extension.final booleanWhether this extension is temporary or not.final StringThe string representation of the date that this extension was most recently updated (simplified ISO 8601 format).final StringVersion string for this extension. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
icon
MainImagebranding for thisWebExtension. Can be used when displaying prompts. -
requiredPermissions
Required permissions for this extension.See API permissions .
-
requiredOrigins
Required origin permissions for this extension.See Host permissions .
-
requiredDataCollectionPermissions
Required data collection permissions for this extension. -
optionalPermissions
Optional permissions for this extension.See API permissions .
-
grantedOptionalPermissions
Granted optional permissions for this extension.See API permissions .
-
optionalOrigins
Optional origin permissions for this extension.See Host permissions .
-
grantedOptionalOrigins
Granted optional origin permissions for this extension.See Host permissions .
-
optionalDataCollectionPermissions
Optional data collection permissions for this extension. -
grantedOptionalDataCollectionPermissions
Granted optional data collection permissions for this extension. -
name
Branding name for this extension. -
description
Branding description for this extension. This string will be localized using the current GeckoView language setting. -
fullDescription
The full description of this extension. See: `AddonWrapper.fullDescription`. -
averageRating
public final double averageRatingThe average rating of this extension. See: `AddonWrapper.averageRating`. -
reviewCount
public final int reviewCountThe review count for this extension. See: `AddonWrapper.reviewCount`. -
reviewUrl
The link to the review page for this extension. See `AddonWrapper.reviewURL`. -
updateDate
The string representation of the date that this extension was most recently updated (simplified ISO 8601 format). See `AddonWrapper.updateDate`. -
downloadUrl
The URL used to install this extension. See: `AddonInternal.sourceURI`. -
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
0if 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.USERwill 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. -
amoListingUrl
The link to the AMO detail page for this extension. See `AddonWrapper.amoListingURL`. -
incognito
Indicates how the extension works with private browsing windows.
-
-
Constructor Details
-
MetaData
protected MetaData()Override for testing.
-