HTML and CSS Reference
In-Depth Information
* If the errorCallback is invoked then the storage engine cannot be used.
* It should be possible to call this method multiple times, and the same result will be returned each time.
*
* @param {Function} successCallback The callback that will be invoked if the storage engine initializes.
* @param {Function} errorCallback The callback that will be invoked in error scenarios.
*/
function init(successCallback, errorCallback)
/**
* The client must call this to initialize a specific object type in the storage engine.
* If the storage engine supports the object type the successCallback will be invoked with a null value.
* It should be possible to call this method multiple times, and the same result will be returned each time.
* If the errorCallback is invoked then the object type cannot be stored.
*
* @param {String} type The type of object that will be stored.
* @param {Function} successCallback The callback that will be invoked if the storage engine initializes.
* @param {Function} errorCallback The callback that will be invoked on error scenarios.
*/
function initObjectStore(type, successCallback, errorCallback)
/**
* This can be used to find all the objects for a specific type.
* If there are no objects found for that type this will return an empty array.
*
* @param {String} type The type of object that should be searched for.
* @param {Function} successCallback The callback that will be invoked after the query completes. This will be passed
an array of objects conforming to the requested type.
* @param {Function} errorCallback The callback that will be invoked on error scenarios.
*/
function findAll(type, successCallback, errorCallback)
/**
Search WWH ::




Custom Search