4️⃣ Scan Document
Api Signature
fun scanDocument(onCompletion: (DocumentResult<EDocument>) -> Unit)public static func scanDocument(
completion: @escaping (Result<EDocument, DocumentError>) -> Void
)Future<DocumentResult<EDocument>> scanDocument();Returned result
public data class EDocument(
// The path to the image extracted from the document
var facePath: String = UNKNOWN,
// Personal information of the document holder
var personalInformation: PersonalInformation = PersonalInformation(),
// Information about the document itself
var documentInformation: DocumentInformation = DocumentInformation(),
// Security-related information and verification status
var security: DocumentSecurity = DocumentSecurity(),
)public struct EDocument {
/// The image extracted from the document
public let passportImage: UIImage?
/// Personal information of the document holder
public let personalInformation: PersonalInformation
/// Information about the document itself
public let documentInformation: DocumentInformation
/// Security-related information and verification status
public let security: DocumentSecurityclass EDocument {
// Person image extracted from the document
Uint8List? documentImage;
// Personal information of the document holder
PersonalInformation personalInformation;
// Information about the document itself
DocumentInformation documentInformation;
// Security-related information and verification status
DocumentSecurity security;
}Errors
Example usage
Last updated
Was this helpful?