Identity iOS
1.12
Search
K
Comment on page

GenericIDCardModel

A class derived from DocumentModel containing details specifying details for a Generic ID card model

Declaration

@objc final public class GenericDocumentModel : DocumentModel {
@objc final public var frontRestult: String? { get }
@objc final public var backRestult: String? { get }
override final public func encode(to encoder: Encoder) throws
}
Only relevant details are shown, boilerplate or standard Swift generated code is omitted

Summary

Public variables

Name
Type
Description
Data source
String?
The entire front String captured by OCR
OCR
String?
The entire back String captured by OCR
OCR

Public methods

Signature
Return Type
Description
Void
Encodes the model using the encoder provided. Used to convert the model to JSON.

Public variables

frontResult

@objc final public var frontResult: String? { get }
Example: "Some\ndata\nin\nthe\nframe"
The entire front String captured by OCR

backResult

@objc final public var backResult: String? { get }
Example: "Some\ndata\nin\nthe\nframe"
The entire back String captured by OCR

Public methods

encode(to encoder: Encoder)

override final 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.

See also