Version: Smart Feature Phone 2.5

DataStore.readOnly

The readOnly read-only property of the DataStore interface returns a boolean indicating whether the current data store is read-only.

Syntax#

myStoreName = store.readOnly;

Value#

A boolean.

Example#

The following example gets all the data stores on the device called "contacts", then logs its read-only status to the console:

navigator.getDataStores('contacts').then(function(stores) {
console.log(stores[0].readOnly);
});