BiometricsModel
A base class containing images for a scanned face
Declaration
Only relevant details are shown, boilerplate or standard Swift generated code is omitted
Summary
Public variables
Name
Type
Description
Public methods
Signature
Return Type
Description
Void
Saves the selfieImage and croppedSelfieImage and populates their respective path variables.
Void
Encodes the model using the encoder provided. Used to convert the model to JSON.
Public variables
selfieImage
@objc public var selfieImage: UIImage? { get }
Contains an original image of the subject's face.
croppedSelfieImage
@objc public var croppedSelfieImage: UIImage? { get }
The cropped version of selfieImage, containing just the face.
selfieImagePath
@objc public var selfieImagePath: String? { get }
The path to selfieImage, after it is saved. Otherwise nil.
croppedSelfieImagePath
@objc public var croppedSelfieImagePath: String? { get }
The path to croppedSelfieImage, after it is saved. Otherwise nil.
Public methods
saveImages()
@objc public func saveImages()
Saves the selfieImage and croppedSelfieImage and populates their respective path variables.
encode(to encoder: Encoder)
public func encode(to encoder: Encoder) throws
Encodes the model using the encoder provided. Used to convert the model to JSON.
Where this is used
Last updated