Class: MASStoragePlugin

MASStoragePlugin

new MASStoragePlugin()

Source:

Methods

(static) MASSecureCloudStorage()

Stores the data in a cloud and fetches data from cloud. The method has the interfaces mapped to the native MASStorage class.
Source:

(static) MASSecureLocalStorage()

Stores the data on local devices and fetches data from local device store. The method has the interfaces mapped to the native MASStorage class.
Source:

(static) this.deleteAllUsingMode(successHandler, errorHandler, mode)

Deletes all data in a mode
Parameters:
Name Type Description
successHandler function user defined success callback
errorHandler function user defined error callback
mode string mode for which the data needs to be deleted
Source:

(static) this.deleteByUsingKeyAndMode(successHandler, errorHandler, key, mode)

Deletes data using key and mode
Parameters:
Name Type Description
successHandler function user defined success callback
errorHandler function user defined error callback
key string key of the data to be deleted
mode string mode in which the data was saved
Source:

(static) this.deleteByUsingKeyAndMode(successHandler, errorHandler, key, mode)

Deletes data using key and mode
Parameters:
Name Type Description
successHandler function user defined success callback
errorHandler function user defined error callback
key string key of the data to be deleted
mode string mode in which the data was saved
Source:

(static) this.findByUsingKeyAndMode(successHandler, errorHandler, key, mode)

Finds data using key and mode
Parameters:
Name Type Description
successHandler function user defined success callback
errorHandler function user defined error callback
key string key of the data to be searched
mode string mode in which the data was saved
Source:

(static) this.findByUsingKeyAndMode(successHandler, errorHandler, key, mode)

Finds data using key and mode
Parameters:
Name Type Description
successHandler function user defined success callback
errorHandler function user defined error callback
key string key of the data to be searched
mode string mode in which the data was saved
Source:

(static) this.keySetForMode(successHandler, errorHandler, mode)

Returns the sets of keys for a given mode
Parameters:
Name Type Description
successHandler function user defined success callback
errorHandler function user defined error callback
mode string mode for which the key set is required
Source:

(static) this.keySetForMode(successHandler, errorHandler, mode)

Returns the sets of keys for a given mode
Parameters:
Name Type Description
successHandler function user defined success callback
errorHandler function user defined error callback
mode string mode for which the key set is required
Source:

(static) this.save(successHandler, errorHandler, mime, key, data, mode)

Saves the data to cloud storage
Parameters:
Name Type Description
successHandler function user defined success callback
errorHandler function user defined error callback
mime string mime type of the data
key string key with which the data is to be stored
data string data payload
mode string mode in which the data is to be saved
Source:

(static) this.save(successHandler, errorHandler, mime, key, data, mode)

Saves the data to local storage
Parameters:
Name Type Description
successHandler function user defined success callback
errorHandler function user defined error callback
mime string mime type of the data
key string key with which the data is to be stored
data string data payload
mode string mode in which the data is to be saved
Source: