DriversLicenseModel
A class derived from DocumentModel containing details pertaining to all drivers license documents
A class derived from DocumentModel containing details pertaining to all drivers license documents
Only relevant details are shown, boilerplate or standard Swift generated code is omitted
@objc public var licenseNumber: String? { get }
Example: "01020304"
The license number of the subject as found on the drivers license document.
@objc public var documentBackImage: UIImage? { get }
Contains an original image of the back side of the document.
@objc public var documentBackImagePath: String? { get }
The path to documentBackImage, after it is saved. Otherwise nil.
@objc override public func saveImages()
This function also calls its super function
Saves the documentBackImage and populates its respective path variable.
override public func encode(to encoder: Encoder) throws
This function also calls its super function
Encodes the model using the encoder provided. Used to convert the model to JSON.
Name
Type
Description
Data source
String?
The license number of the subject as found on the drivers license document.
OCR / Barcode
UIImage?
Contains an original image of the back side of the document.
Back of document
String?
The path to documentBackImage, after it is saved. Otherwise nil.
Local storage
Signature
Return Type
Description
Void
Saves the documentBackImage and populates its respective path variable.
Void
Encodes the model using the encoder provided. Used to convert the model to JSON.