Package org.mozilla.geckoview
Class WebExtension.MetaData
Object
org.mozilla.geckoview.WebExtension.MetaData
- Enclosing class:
- WebExtension
Provides information about a
WebExtension
.-
Field Summary
Modifier and TypeFieldDescriptionfinal boolean
Whether this extension is allowed to run in private browsing or not.final String
The link to the AMO detail page for this extension.final double
The average rating of this extension.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 String
The URL used to install this extension.final boolean
Whether this extension is enabled or not.final String
The full description of this extension.final String[]
Granted optional origin permissions for this extension.final String[]
Granted optional permissions for this extension.final String
Homepage url as provided in the manifest.final Image
MainImage
branding for thisWebExtension
.final String
Indicates how the extension works with private browsing windows.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[]
Optional origin permissions for this extension.final String[]
Optional permissions for this extension.final String
Options page as provided in the manifest.final String[]
Deprecated.final String[]
Deprecated.UserequiredPermissions
instead.final String[]
Deprecated.UserequiredPermissions
instead.final String[]
Required origin permissions for this extension.final String[]
Required permissions for this extension.final int
The review count for this extension.final String
The link to the review page for this extension.final int
Signed status for this extension.final boolean
Whether this extension is temporary or not.final String
The string representation of the date that this extension was most recently updated (simplified ISO 8601 format).final String
Version string for this extension. -
Constructor Summary
-
Method Summary
-
Field Details
-
icon
MainImage
branding for thisWebExtension
. Can be used when displaying prompts. -
promptPermissions
@Deprecated @DeprecationSchedule(id="web-extension-required-permissions", version=133) @NonNull public final String[] promptPermissionsDeprecated.UserequiredPermissions
instead. -
permissions
@Deprecated @DeprecationSchedule(id="web-extension-required-permissions", version=133) @NonNull public final String[] permissionsDeprecated.UserequiredPermissions
instead. -
requiredPermissions
Required permissions for this extension.See API permissions .
-
origins
@Deprecated @DeprecationSchedule(id="web-extension-required-origins", version=133) @NonNull public final String[] originsDeprecated.UserequiredOrigins
instead. -
requiredOrigins
Required origin permissions for this extension.See Host permissions .
-
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 .
-
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
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. -
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.
-
requiredOrigins
instead.