DownloadStatusListner
public protocol DownloadStatusListner : AnyObject
Observer for Downloadable
retrieving progress
-
Next data chunk is downloaded
Declaration
Swift
func downloadProgressUpdated(progress: FileDownloadProgress)
Parameters
progress
object downloading progress struct
-
Called when
Downloadable
is being started to downloadDeclaration
Swift
func downloadBegan()
-
Called when downloading is successfully finished
Declaration
Swift
func downloadFinished()
-
Called when downloading failed
Declaration
Swift
func downloadFailed(_ error: Error)
Parameters
error
reason of failure