resumeDownload(fromResumeData:completionHandler:)
Resumes a failed or canceled download.
Declaration
func resumeDownload(fromResumeData resumeData: Data, completionHandler: @escaping @MainActor @Sendable (WKDownload) -> Void)func resumeDownload(fromResumeData resumeData: Data) async -> WKDownloadParameters
- resumeData:
An object with data that you use to resume a failed or canceled download.
- completionHandler:
A closure the system executes when it has resumed a download.
Discussion
To receive progress updates, set the delegate of the download object in the completion handler.