Comment on page
DriversLicenseModel
A class derived from DocumentModel containing details pertaining to all drivers license documents
@objc public class DriversLicenseModel : DocumentModel {
@objc public var licenseNumber: String? { get }
@objc public var documentBackImage: UIImage? { get }
@objc public var documentBackImagePath: String? { get }
@objc override public func saveImages()
override public func encode(to encoder: Encoder) throws
}
Only relevant details are shown, boilerplate or standard Swift generated code is omitted
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? | Local storage |
Signature | Return Type | Description |
Void | ||
Void | Encodes the model using the encoder provided. Used to convert the model to JSON. |
@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 }
@objc override public func saveImages()
override public func encode(to encoder: Encoder) throws
Encodes the model using the encoder provided. Used to convert the model to JSON.
Last modified 1yr ago