Version: Smart Feature Phone 2.5

DeviceStorageChangeEvent

Summary#

The DeviceStorageChangeEvent provides information about any change made to a file inside a given storage area. It extends the Event interface.

The change event is triggered each time a file is created, modified, or deleted from the device storage system.

Properties#

Example#

var sdcard = navigator.getDeviceStorage('sdcard');
sdcard.addEventListener("change", function (event) {
var reason = event.reason;
var path = event.path;
console.log('The file "' + path + '" has been ' + reason);
});