PhotoRepresentation
@objc(PESDKPhotoRepresentation)
public protocol PhotoRepresentation
The PhotoRepresentation
protocol represents a photo of some form.
-
The url that this photo was initialized with if any.
Declaration
Swift
var url: URL? { get }
-
The data object that this photo was initialized with if any.
Declaration
Swift
var data: Data? { get }
-
The image object that this photo was initialized with if any.
Declaration
Swift
var image: UIImage? { get }
-
The
UIImage
representation of thisPhotoRepresentation
.Declaration
Swift
var uiImage: UIImage? { get }
-
The size of the photo.
Declaration
Swift
var size: CGSize { get }
-
Creates a new photo representation with the given data.
Declaration
Swift
init(data: Data)
Parameters
data
The data of the image.
-
Creates a new photo representatino with the given url.
Declaration
Swift
@objc(initWithURL:) init(url: URL)
Parameters
url
The url of the image on disk.