/// <summary> /// Allows resuming cancelled or interrupted downloads from previous Session. The /// API will generate a DownloadItem that can be accessed with the will-download /// event. The DownloadItem will not have any WebContents associated with it and the /// initial state will be interrupted. The download will start only when the resume /// API is called on the DownloadItem. /// </summary> /// <param name="options"></param> public void CreateInterruptedDownload(CreateInterruptedDownloadOptions options) { BridgeConnector.Socket.Emit("webContents-session-createInterruptedDownload", Id, JObject.FromObject(options, _jsonSerializer)); }
/// <summary> /// Allows resuming cancelled or interrupted downloads from previous Session. The /// API will generate a DownloadItem that can be accessed with the will-download /// event. The DownloadItem will not have any WebContents associated with it and the /// initial state will be interrupted. The download will start only when the resume /// API is called on the DownloadItem. /// </summary> /// <param name="options"></param> public void CreateInterruptedDownload(CreateInterruptedDownloadOptions options) { BridgeConnector.Emit("webContents-session-createInterruptedDownload", Id, options); }