chrome.* APIs
For information on how to use experimental APIs, see the chrome.experimental.* APIs page.
chrome.* APIs
true
Google Chrome provides APIs such as
chrome.bookmarks
and chrome.tab
so that extensions can interact with the browser.
Supported APIs
Here are the supported chrome.* APIs:
Experimental APIs
Google Chrome also has some
experimental APIs,
which give you access to
functionality such as process information and history.
API conventions
Unless the doc says otherwise,
methods in the chrome.* APIs are asynchronous:
they return immediately,
without waiting for the operation to finish.
If you need to know the outcome of an operation,
then you pass a callback function into the method.
For more information, see the video
Extension API Design.
API reference: chrome.apiname
Properties
getLastError
chrome.extensionlastError
Methods
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.
Events
event name
chrome.bookmarksonEvent.addListener(function(Type param1, Type param2) {...});
Undocumented.
A description from the json schema def of the event goes here.
Parameters