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

    uploadTask

    The upload task the upload is executed on.

    didSendBodyData

    The bytes currently send.

    totalBytesSent

    The bytes totally sent.

    totalBytesExpectedToSend

    The total bytes expected to send.

  • # Summary Delegate which gets called when an upload did finish.

    Declaration

    Swift

    func uploadExecuter(didFinishWith uploadTask: URLSessionUploadTask)

    Parameters

    downloadTask

    The 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

    downloadTask

    The upload task the upload is executed on.

    didCompleteWithError

    The error which was thrown while uploading.