DownloadDelegate
protocol DownloadDelegate : AnyObject
Download delegate.
-
File size received.
Declaration
Swift
func received(fileSize: Int64)Parameters
fileSizeFile size in bytes.
-
Downloaded file size progress updated.
Declaration
Swift
func updated(_ progress: DMSwiftTypealias.Download.ProgressData)Parameters
progressProgress.
downloadedSizeTotal downloaded size.
receivedSizeNew received size.
fileSizeTotal file size.
-
File download task completed.
Declaration
Swift
func completed(_ data: DMSwiftTypealias.Download.FileData)Parameters
fileLocationFile location on the device storage.
urlFile remote location.
errorError.
-
File saved to the device storage.
Declaration
Swift
func fileData(_ fileData: DMSwiftTypealias.Download.SavedFileData)Parameters
fileDataFile location on the device storage, filename and extension.
DownloadDelegate Protocol Reference