Skip to main content

DownloadService

Methods

createDownload()

createDownload(downloadId, downloadConfiguration): Promise<Download>

Creates a new download.

Parameters

ParameterTypeDescription
downloadIdstringThe ID of the download.
downloadConfigurationDownloadConfigurationThe configuration for the downloader

Returns

Promise<Download>

A promise that resolves to the created download.


deleteDownload()

deleteDownload(downloadId): Promise<void>

Parameters

ParameterType
downloadIdstring

Returns

Promise<void>


getDownload()

getDownload(downloadId): Promise<null | Download>

Parameters

ParameterType
downloadIdstring

Returns

Promise<null | Download>


getInstance()

static getInstance(): DownloadService

Returns

DownloadService