public protocol ImageDecoding
An image decoder.
A decoder is a one-shot object created for a single image decoding session.
Types Conforming to
A decoder that supports all of the formats natively supported by the system.
A decoder that returns an empty placeholder image and attaches image data to the image container.
An image decoder which supports automatically registering in the decoder register.
public var isAsynchronous: Bool
true by default.
var isAsynchronous: Bool
true if you want the decoding to be performed on the decoding
false, the decoding will be
performed synchronously on the pipeline operation queue. By default,
func decode(_ data: Data) -> ImageContainer?
Produces an image from the given image data.
func decodePartiallyDownloadedData(_ data: Data) -> ImageContainer?
Produces an image from the given partially dowloaded image data.
This method might be called multiple times during a single decoding
session. When the image download is complete,
decode(data:) method is called.
nil by default.