Kingfisher Documentation

Class Session​Data​Task

public class SessionDataTask  

Represents a session data task in ImageDownloader. It consists of an underlying URLSessionDataTask and an array of TaskCallback. Multiple TaskCallbacks could be added for a single downloading data task.

Nested Type Aliases

Cancel​Token

public typealias CancelToken = Int

Represents the type of token which used for cancelling a task.

Properties

mutable​Data

public private(set) var mutableData: Data

Downloaded raw data of current task.

original​URL

public let originalURL: URL? 

task

public let task: URLSessionDataTask

The underlying download task. It is only for debugging purpose when you encountered an error. You should not modify the content of this task or start it yourself.