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


public typealias CancelToken = Int

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



public private(set) var mutableData: Data

Downloaded raw data of current task.


public let originalURL: URL? 


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.