Functions
The following functions are available globally.
-
Attempts to convert an
Data
instance into an image object appropriate for the current platform. Used by theFetchImageTransaction
to construct images from transaction data.Throws
A
DataTransactionError
ifdata
could not be converted into aPlatformImageType
.Declaration
Swift
public func platformImage(fromData data: Data) throws -> PlatformImageType
Parameters
data
The data to convert into an image.
Return Value
A
PlatformImageType
instance containing the image.