Add isPaused and canResume

This commit is contained in:
Cheng Zhao 2016-06-09 20:51:01 +09:00
parent 3f1dba3016
commit dcad25c98c
3 changed files with 26 additions and 0 deletions

View file

@ -78,10 +78,18 @@ routine to determine the save path(Usually prompts a save dialog).
Pauses the download.
### `downloadItem.isPaused()`
Returns whether the download is paused.
### `downloadItem.resume()`
Resumes the download that has been paused.
### `downloadItem.canResume()`
Resumes whether the download can resume.
### `downloadItem.cancel()`
Cancels the download operation.