Interface IDownloadEventEmitter
Events
on
- on(eventName: "progress", listener: function): this
- on(eventName: "finish", listener: function): this
- on(eventName: "error", listener: function): this
-
Parameters
-
eventName: "progress"
-
listener: function
Returns this
-
Parameters
-
eventName: "finish"
-
listener: function
Returns this
-
Parameters
-
eventName: "error"
-
listener: function
Returns this
Methods
startDownloading
-
Parameters
Returns Promise<any>
Responsible of notifying relevant events about downloading stuff. Instances can be obtained like this:
const downloadEmitter = Factory.getInstance<IDownloadEventEmitter>('IDownloadEventEmitter');