public class WebExtension.MetaData extends Object
WebExtension
.Modifier and Type | Field and Description |
---|---|
boolean |
allowedInPrivateBrowsing
Whether this extension is allowed to run in private browsing or not.
|
String |
baseUrl
Root URL for this extension's pages.
|
int |
blocklistState
Blocklist status for this extension.
|
String |
creatorName
Creator name as provided in the manifest.
|
String |
creatorUrl
Creator url as provided in the manifest.
|
String |
description
Branding description for this extension.
|
int |
disabledFlags
Disabled binary flags for this extension.
|
boolean |
enabled
Whether this extension is enabled or not.
|
String |
homepageUrl
Homepage url as provided in the manifest.
|
Image |
icon
Main
Image branding for this WebExtension . |
boolean |
isRecommended
Whether or not this is a recommended extension.
|
String |
name
Branding name for this extension.
|
boolean |
openOptionsPageInTab
Whether the options page should be open in a Tab or not.
|
String |
optionsPageUrl
Options page as provided in the manifest.
|
String[] |
origins
Host permissions requested or granted to this extension.
|
String[] |
permissions
API permissions requested or granted to this extension.
|
int |
signedState
Signed status for this extension.
|
boolean |
temporary
Whether this extension is temporary or not.
|
String |
version
Version string for this extension.
|
Modifier | Constructor and Description |
---|---|
protected |
MetaData()
Override for testing.
|
@NonNull public final Image icon
Image
branding for this WebExtension
.
Can be used when displaying prompts.@NonNull public final String[] permissions
@NonNull public final String[] origins
@Nullable public final String name
@Nullable public final String description
@NonNull public final String version
@Nullable public final String creatorName
@Nullable public final String creatorUrl
@Nullable public final String homepageUrl
@Nullable public final String optionsPageUrl
public final boolean openOptionsPageInTab
public final boolean isRecommended
public final int blocklistState
public final int signedState
public final int disabledFlags
0
if the extension
is enabled or will contain one or more flags from WebExtension.DisabledFlags
.
e.g. if the extension has been disabled by the user, the value in
WebExtension.DisabledFlags.USER
will be equal to 1
:
boolean isUserDisabled = metaData.disabledFlags
& DisabledFlags.USER > 0;
@NonNull public final String baseUrl
public final boolean allowedInPrivateBrowsing
WebExtensionController.setAllowedInPrivateBrowsing(org.mozilla.geckoview.WebExtension, boolean)
.public final boolean enabled
public final boolean temporary