DataStoreChangeEvent
interface of the Data Store API represents the event related to a record changed in the data store, i.e. this is returned once a change is made and the change event is fired (see DataStore.onchange
for the handler).id
read-only property of the DataStoreChangeEvent
interface returns the identifier of the changed record in the data store. This must return null
if the operation is cleared
.operation
read-only property of the DataStoreChangeEvent
interface returns the type of operation that represents the current change that has been made to the data store.owner
read-only property of the DataStoreChangeEvent
interface returns the manifest URL of the application that made the change to the data store.revisionId
read-only property of the DataStoreChangeEvent
interface returns the ID of the current revision of the data store, i.e. the current change that has been made to a data record.DataStoreCursor
interface of the Data Store API represents a cursor that allows apps to iterate through a list of DataStoreTask
objects representing the change history of the data store, for use when synchronizing the data.close()
method of the DataStoreCursor
interface makes a request to terminate the cursor.next()
method of the DataStoreCursor
interface makes a request to retrieve information about the next operation that changes a record in the data store. Returns a promise of type DataStoreTask
.DataStore
object.DataStoreTask
interface of the Data Store API represents a record changed in the data store when a DataStoreCursor
is used to iterate through the data store's change history.data
read-only property of the DataStoreChangeEvent
interface returns the data stored in the changed record in the data store. Must return null
if the operation is clear
or done
.id
read-only property of the DataStoreTask
interface returns the identifier of the changed record in the data store. This must return null
if the operation is cleared or done.operation
read-only property of the DataStoreTask
interface returns the type of operation that represents the current change that has been made to the data store.revisionId
read-only property of the DataStoreTask
interface returns the id of the current revision of the data store, i.e. the current change that has been made to a data record.navigator.getDataStores()
method provides access to a list of the Data Store API data stores available on the device.add()
method of the DataStore
interface adds a new record to the data store; if the record you are attempting to add already exists, it will throw an exception.clear()
method of the DataStore
interface deletes all records from the data store, leaving it empty.get()
method of the DataStore
interface retrieves one or more objects from the current data store.getLength()
method of the DataStore
interface returns the number of records stored in the current data store.