MōBrowser API
Loading...
Searching...
No Matches
mobrowser::DownloadEvents Class Reference

A class that contains all download events. More...

#include <download_events.hpp>

Inheritance diagram for mobrowser::DownloadEvents:
mobrowser::Download

Public Attributes

Event< DownloadFinishedonDownloadFinished
 Invoked when the download has been finished.
 
Event< DownloadCanceledonDownloadCanceled
 Invoked when the download has been canceled.
 
Event< DownloadInterruptedonDownloadInterrupted
 Invoked when the download has been interrupted.
 
Event< DownloadPausedonDownloadPaused
 Invoked when the download has been paused.
 
Event< DownloadUpdatedonDownloadUpdated
 Invoked when the download has been updated.
 

Detailed Description

A class that contains all download events.

Member Data Documentation

◆ onDownloadCanceled

Event<DownloadCanceled> mobrowser::DownloadEvents::onDownloadCanceled

Invoked when the download has been canceled.

Use the following approach to subscribe to receiving the event:

download->onDownloadCanceled += [](const DownloadCanceled& event) {};
The DownloadEvents::onDownloadCanceled event arguments.
Definition download_events.hpp:29

◆ onDownloadFinished

Event<DownloadFinished> mobrowser::DownloadEvents::onDownloadFinished

Invoked when the download has been finished.

Use the following approach to subscribe to receiving the event:

download->onDownloadFinished += [](const DownloadFinished& event) {};
The DownloadEvents::onDownloadFinished event arguments.
Definition download_events.hpp:19

◆ onDownloadInterrupted

Event<DownloadInterrupted> mobrowser::DownloadEvents::onDownloadInterrupted

Invoked when the download has been interrupted.

Use the following approach to subscribe to receiving the event:

download->onDownloadInterrupted += [](const DownloadInterrupted& event) {};
The DownloadEvents::onDownloadInterrupted event arguments.
Definition download_events.hpp:205

◆ onDownloadPaused

Event<DownloadPaused> mobrowser::DownloadEvents::onDownloadPaused

Invoked when the download has been paused.

Use the following approach to subscribe to receiving the event:

download->onDownloadPaused += [](const DownloadPaused& event) {};
The DownloadEvents::onDownloadPaused event arguments.
Definition download_events.hpp:220

◆ onDownloadUpdated

Event<DownloadUpdated> mobrowser::DownloadEvents::onDownloadUpdated

Invoked when the download has been updated.

Use the following approach to subscribe to receiving the event:

download->onDownloadUpdated += [](const DownloadUpdated& event) {};
The DownloadEvents::onDownloadUpdated event arguments.
Definition download_events.hpp:230

The documentation for this class was generated from the following file: