new OfflineController(manifestController)
Parameters:
| Name | Type | Description | 
|---|---|---|
manifestController | 
            
            ManifestController | reference to existing manifest controller | 
Methods
getManifestDataFile(manifestId, callback) → {void}
Parameters:
| Name | Type | Description | 
|---|---|---|
manifestId | 
            
            string | manifest identifier | 
callback | 
            
            function | callback with resolved info data about manifest - if such exists | 
Returns:
- Type
 - void
 
getManifestFolderInfo(manifestId, callback) → {void}
Parameters:
| Name | Type | Description | 
|---|---|---|
manifestId | 
            
            string | manifest identifier | 
callback | 
            
            function | function to be called when info for manifest is ready | 
Returns:
- Type
 - void
 
getManifestInfo(manifestId, callback, full) → {void}
Parameters:
| Name | Type | Description | 
|---|---|---|
manifestId | 
            
            string | manifest identifier | 
callback | 
            
            function | function to be called when info for manifest is ready | 
full | 
            
            Boolean | if downloaded info should contain all items or only the length | 
Returns:
- Type
 - void
 
getManifestInfoPromise(manifestId, full) → {Promise}
Parameters:
| Name | Type | Description | 
|---|---|---|
manifestId | 
            
            string | manifest identifier | 
full | 
            
            Boolean | if downloaded info should contain all items or only the length | 
Returns:
    - promise
- Type
 - Promise
 
getManifestsList(callback) → {void}
Parameters:
| Name | Type | Description | 
|---|---|---|
callback | 
            
            function | function to be called when list is ready | 
Returns:
- Type
 - void
 
getManifestsListWithInfo(callback, full) → {void}
Parameters:
| Name | Type | Description | 
|---|---|---|
callback | 
            
            function | function to be called when list with info is ready | 
full | 
            
            Boolean | if downloaded info should contain all items or only the length | 
Returns:
- Type
 - void
 
remove(manifestId, onSuccess, onFailure) → {void}
Parameters:
| Name | Type | Description | 
|---|---|---|
manifestId | 
            
            string | manifest identifier | 
onSuccess | 
            
            function | callback to be invoked when remove has been successfully | 
onFailure | 
            
            function | callback to be invoked when remove failed | 
Returns:
- Type
 - void
 
removeAllPromise() → {Promise}
Returns:
    - promise
- Type
 - Promise
 
removePromise(manifestId) → {Promise}
Parameters:
| Name | Type | Description | 
|---|---|---|
manifestId | 
            
            string | manifest identifier | 
Returns:
    - promise
- Type
 - Promise
 
restoreLocalManifest(manifestId, onSuccess, onFailure) → {void}
Parameters:
| Name | Type | Description | 
|---|---|---|
manifestId | 
            
            string | manifest identifier | 
onSuccess | 
            
            function | callback to be invoked when restore has been successfully | 
onFailure | 
            
            function | callback to be invoked when restore failed | 
Returns:
- Type
 - void
 
setDownloadStorage(storage) → {void}
Parameters:
| Name | Type | Description | 
|---|---|---|
storage | 
            
            DownloadsStorageController | downloads storage controller | 
Returns:
- Type
 - void