Identity iOS
1.12
Search
K
Comment on page

GenericDocumentModel

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

Declaration

@objc final public class GenericDocumentModel : DocumentModel {
@objc final public var result: 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
result
String?
The entire 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

result

@objc final public var result: String? { get }
Example: "Some\ndata\nin\nthe\nframe"
The entire 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