chrome.experimental.management
For information on how to use experimental APIs, see the chrome.experimental.* APIs page.
API reference: chrome.experimental.management
Properties
getLastError
chrome.extensionlastError
Methods
getAll
void
chrome.experimental.management.getAll(, function
callback)
Undocumented.
Returns a list of information about installed extensions and apps.
Parameters
-
callback
(
optional
enumerated
Type
array of
function
)
-
Undocumented.
-
Description of this parameter from the json schema.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
Returns
Callback function
The callback parameter should specify a function
that looks like this:
If you specify the callback parameter, it should
specify a function that looks like this:
function(array of ExtensionInfo result) {...};
-
result
-
Undocumented.
-
Description of this parameter from the json schema.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
This function was added in version .
If you require this function, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
method name
void
chrome.module.methodName(,
)
Undocumented.
A description from the json schema def of the function goes here.
Parameters
Returns
Callback function
The callback parameter should specify a function
that looks like this:
If you specify the callback parameter, it should
specify a function that looks like this:
function(Type param1, Type param2) {...};
This function was added in version .
If you require this function, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
setEnabled
void
chrome.experimental.management.setEnabled(, string
id, boolean
enabled, function
callback)
Undocumented.
Enable or disable an app or extension.
Parameters
-
id
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
- This should be the id from an item of ExtensionInfo.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
enabled
(
optional
enumerated
Type
array of
boolean
)
-
Undocumented.
- Whether this item should be enabled or disabled.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
callback
(
optional
enumerated
Type
array of
function
)
-
Undocumented.
-
Description of this parameter from the json schema.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
Returns
Callback function
The callback parameter should specify a function
that looks like this:
If you specify the callback parameter, it should
specify a function that looks like this:
function() {...};
This function was added in version .
If you require this function, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
uninstall
void
chrome.experimental.management.uninstall(, string
id, function
callback)
Undocumented.
Uninstall a currently installed app or extension.
Parameters
-
id
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
- This should be the id from an item of ExtensionInfo.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
callback
(
optional
enumerated
Type
array of
function
)
-
Undocumented.
-
Description of this parameter from the json schema.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
Returns
Callback function
The callback parameter should specify a function
that looks like this:
If you specify the callback parameter, it should
specify a function that looks like this:
function() {...};
This function was added in version .
If you require this function, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
Events
onDisabled
chrome.experimental.management.onDisabled.addListener(function(ExtensionInfo info) {...});
Undocumented.
(NOT YET IMPLEMENTED)
Parameters
-
info
-
Undocumented.
-
Description of this parameter from the json schema.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
onEnabled
chrome.experimental.management.onEnabled.addListener(function(ExtensionInfo info) {...});
Undocumented.
(NOT YET IMPLEMENTED)
Parameters
-
info
-
Undocumented.
-
Description of this parameter from the json schema.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
onInstalled
chrome.experimental.management.onInstalled.addListener(function(ExtensionInfo info) {...});
Undocumented.
(NOT YET IMPLEMENTED)
Parameters
-
info
-
Undocumented.
-
Description of this parameter from the json schema.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
onUninstalled
chrome.experimental.management.onUninstalled.addListener(function(string id) {...});
Undocumented.
(NOT YET IMPLEMENTED)
Parameters
-
id
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
- The id of the extension that was uninstalled.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
Types
IconInfo
paramName
(
optional
enumerated
Type
array of
object
)
Undocumented.
Information about an icon belonging to an extension or app.
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
size
(
optional
enumerated
Type
array of
integer
)
-
Undocumented.
- A number representing the width and height of the icon. Likely values include (but are not limited to) 128, 48, 24, and 16.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
url
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
- The url for this icon image.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
ExtensionInfo
paramName
(
optional
enumerated
Type
array of
object
)
Undocumented.
Information about an installed extension or app.
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
id
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
- The extension's unique identifier.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
name
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
- The name of this extension or app.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
enabled
(
optional
enumerated
Type
array of
boolean
)
-
Undocumented.
- Whether it is currently enabled or disabled.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
isApp
(
optional
enumerated
Type
array of
boolean
)
-
Undocumented.
- True if this is an app.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
appLaunchUrl
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
- The launch url (only present for apps).
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
optionsUrl
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
- The url for the item's options page, if it has one.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
icons
(
optional
enumerated
Type
array of
IconInfo
array of
paramType
paramType
)
-
Undocumented.
- A list of icon information. Note that this just reflects what was declared in the manifest, and the actual image at that url may be larger or smaller than what was declared, so you might consider using explicit width and height attributes on img tags referencing these images. See the manifest documentation on icons for more details.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-