|
@@ -2,6 +2,8 @@
|
|
|
|
|
|
> Control file downloads from remote sources.
|
|
|
|
|
|
+Process: [Main](../tutorial/quick-start.md#main-process)
|
|
|
+
|
|
|
`DownloadItem` is an `EventEmitter` that represents a download item in Electron.
|
|
|
It is used in `will-download` event of `Session` class, and allows users to
|
|
|
control the download item.
|
|
@@ -59,7 +61,7 @@ Returns:
|
|
|
* `state` String
|
|
|
|
|
|
Emitted when the download is in a terminal state. This includes a completed
|
|
|
-download, a cancelled download(via `downloadItem.cancel()`), and interrupted
|
|
|
+download, a cancelled download (via `downloadItem.cancel()`), and interrupted
|
|
|
download that can't be resumed.
|
|
|
|
|
|
The `state` can be one of following:
|