download(_:didFailWithError:resumeData:)
Tells the delegate that the download failed, with error information and data you can use to restart the download.
Declaration
optional func download(_ download: WKDownload, didFailWithError error: any Error, resumeData: Data?)Parameters
- download:
The download that failed.
- error:
An error describing what caused the download to fail.
- resumeData:
A data object you use to restart the download.
Discussion
To restart a failed download, call resumeDownload(fromResumeData:completionHandler:) with resumeData.