UploadExecuterDelegate
public protocol UploadExecuterDelegate : AnyObject
Undocumented
-
# Summary Delegate which gets called when a progress update happens.
Declaration
Swift
func uploadExecuter(_ uploadTask: URLSessionUploadTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64)Parameters
uploadTaskThe upload task the upload is executed on.
didSendBodyDataThe bytes currently send.
totalBytesSentThe bytes totally sent.
totalBytesExpectedToSendThe total bytes expected to send.
-
# Summary Delegate which gets called when an upload did finish.
Declaration
Swift
func uploadExecuter(didFinishWith uploadTask: URLSessionUploadTask)Parameters
downloadTaskThe upload task the upload is executed on..
-
# Summary Delegate which gets called when an upload fails.
Declaration
Swift
func uploadExecuter(_ uploadTask: URLSessionUploadTask, didCompleteWithError error: Error?)Parameters
downloadTaskThe upload task the upload is executed on.
didCompleteWithErrorThe error which was thrown while uploading.
View on GitHub
Install in Dash
UploadExecuterDelegate Protocol Reference