Class: DownloadsStorageController

DownloadsStorageController()

new DownloadsStorageController()

Methods

clear(manifestId, storageKeysopt) → {Promise}

Parameters:
Name Type Attributes Description
manifestId string manifest identifier
storageKeys Array <optional>
storage keys that will be cleared
Returns:
promise
Type
Promise

create(manifestId) → {Promise}

Parameters:
Name Type Description
manifestId string manifest identifier
Returns:
promise
Type
Promise

createIfNotExists(manifestId) → {Promise}

Parameters:
Name Type Description
manifestId string manifest identifier
Returns:
promise
Type
Promise

getItem(manifestId) → {Promise}

Parameters:
Name Type Description
manifestId string manifest identifier
Returns:
promise
Type
Promise

getKeys() → {Array.<string>}

Returns:
keys of all items
Type
Array.<string>

keyExists(manifestId) → {boolean}

Parameters:
Name Type Description
manifestId string manifest identifier
Returns:
if certain manifest id exists
Type
boolean

removeItem(manifestId) → {Promise}

Parameters:
Name Type Description
manifestId string manifest identifier
Returns:
promise
Type
Promise

sync(manifestId, storageKeysopt) → {Promise}

Parameters:
Name Type Attributes Description
manifestId string manifest identifier
storageKeys Array <optional>
storage keys that will be synced
Returns:
promise
Type
Promise

syncAll(manifestId) → {Promise}

Parameters:
Name Type Description
manifestId string manifest identifier
Returns:
promise
Type
Promise