RetrieveImageDownloadTask

public struct RetrieveImageDownloadTask

Download task.

  • Downloader by which this task is initialized.

    Declaration

    Swift

    public private(set) weak var ownerDownloader: ImageDownloader?
  • Cancel this download task. It will trigger the completion handler with an NSURLErrorCancelled error. If you want to cancel all downloading tasks, call cancelAll() of ImageDownloader instance.

    Declaration

    Swift

    public func cancel()
  • url

    The original request URL of this download task.

    Declaration

    Swift

    public var url: URL? { get }
  • The relative priority of this download task. It represents the priority property of the internal NSURLSessionTask of this download task. The value for it is between 0.0~1.0. Default priority is value of 0.5. See documentation on priority of NSURLSessionTask for more about it.

    Declaration

    Swift

    public var priority: Float { get set }