FetchImageTransaction
open class FetchImageTransaction: HTTPTransaction<PlatformImageType>
Attempts to construct a platform-appropriate image object by fetching image data from the given service.
Note
PlatformImageType
represents the image type appropriate for the
runtime platform. On iOS and tvOS, it maps to UIImage
; on Mac OS X, it’s
NSImage
.
-
Initializes a
FetchImageTransaction
to retrieve image data from the specified URL.Declaration
Swift
public init(url: URL, processingQueue: DispatchQueue = .transactionProcessing)
Parameters
url
The URL of the image.