Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IDownloadEventEmitter

Responsible of notifying relevant events about downloading stuff. Instances can be obtained like this:

 const downloadEmitter = Factory.getInstance<IDownloadEventEmitter>('IDownloadEventEmitter');

Hierarchy

  • IDownloadEventEmitter

Implemented by

Index

Events

Methods

Events

on

  • on(eventName: "progress", listener: function): this
  • on(eventName: "finish", listener: function): this
  • on(eventName: "error", listener: function): this
  • Subscribes given listener so it will be called when the progress of the download changes

    Parameters

    Returns this

  • Subscribes given listener so it will be called when the download finished

    Parameters

    Returns this

  • Subscribes given listener so it will be called when the download finished

    Parameters

    • eventName: "error"
    • listener: function
        • (event: Error): void
        • Parameters

          • event: Error

          Returns void

    Returns this

Methods

startDownloading

  • This method trigger events. Unfortunately I don't know yet how to express that in typedoc

    Parameters

    Returns Promise<any>

Generated using TypeDoc