Use the chrome.storage API to store, retrieve, and track changes to user data.
Use the chrome.storage API to store, retrieve, and track changes to user data. * available since Chrome 33 * https://developer.chrome.com/extensions/storage
(get-local)Items in the local storage area are local to each machine.
https://developer.chrome.com/extensions/storage#property-local.
Items in the local storage area are local to each machine. https://developer.chrome.com/extensions/storage#property-local.
(get-managed)Items in the managed storage area are set by the domain administrator, and are read-only for the extension; trying to modify this namespace results in an error.
https://developer.chrome.com/extensions/storage#property-managed.
Items in the managed storage area are set by the domain administrator, and are read-only for the extension; trying to modify this namespace results in an error. https://developer.chrome.com/extensions/storage#property-managed.
(get-sync)Items in the sync storage area are synced using Chrome Sync.
https://developer.chrome.com/extensions/storage#property-sync.
Items in the sync storage area are synced using Chrome Sync. https://developer.chrome.com/extensions/storage#property-sync.
(tap-all-events chan)Taps all valid non-deprecated events in chromex.ext.storage namespace.
Taps all valid non-deprecated events in chromex.ext.storage namespace.
(tap-on-changed-events channel & args)Fired when one or more items change.
Events will be put on the |channel| with signature [::on-changed [changes area-name]] where:
|changes| - Object mapping each key that changed to its corresponding 'storage.StorageChange' for that item. |area-name| - The name of the storage area ('sync', 'local' or 'managed') the changes are for.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
https://developer.chrome.com/extensions/storage#event-onChanged.
Fired when one or more items change.
Events will be put on the |channel| with signature [::on-changed [changes area-name]] where:
|changes| - Object mapping each key that changed to its corresponding 'storage.StorageChange' for that item.
|area-name| - The name of the storage area ('sync', 'local' or 'managed') the changes are for.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
https://developer.chrome.com/extensions/storage#event-onChanged.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |