ReadonlynameThe name of the data store.
Event handler called when the store changes.
ReadonlyownerThe owner of the data store (manifest URL).
ReadonlyreadWhether the data store is read-only.
ReadonlyrevisionThe current revision ID of the store.
Adds a new object to the store.
The object to add.
Optionalid: DataStoreKeyOptional ID for the object.
OptionalrevisionId: stringOptional revision ID to ensure consistency.
A Promise that resolves with the ID of the added object.
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
Retrieves one or more objects from the store by their IDs.
The ID(s) of the object(s) to retrieve.
A Promise that resolves with the object(s).
Updates an existing object in the store.
The object to update.
The ID of the object.
OptionalrevisionId: stringOptional revision ID to ensure consistency.
A Promise that resolves when the update is complete.
Removes an object from the store.
The ID of the object to remove.
OptionalrevisionId: stringOptional revision ID to ensure consistency.
A Promise that resolves with a boolean indicating success.
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsSynchronizes with the store, returning a cursor for iterating over changes.
OptionalrevisionId: stringThe revision ID to start syncing from.
A DataStoreCursor object.
Note
Func: "Navigator::HasDataStoreSupport"
Note
ChromeConstructor
Note
Exposed: Window, Worker