2️⃣ Read MRZ

The Machine Readable Zone - MRZ contains the information that acts as "proof of authorization" to access the chip content. If machine-reading of the MRZ is not possible the information can be entered manually.

Api Signature

    fun readMRZ(onCompletion: (DocumentResult<MRZDocument>) -> Unit)

Returned result

If the Keyless Document SDK can read the MRZ it will return an instance of MRZDocument containing the data read.

data class MRZDocument(
    val documentNumber: String,
    val dateOfBirth: String,//Format as yy-MM-dd
    val dateOfExpiration: String,//Format as yy-MM-dd
    val personalNumber: String? = null,
    val firstName: String? = null,
    val lastName: String? = null,
    val nationality: String? = null,
    val issuingState: String? = null,
    val documentType: String? = null,
    var gender: String? = null
)

Errors

In case of errors the Keyless Document SDK will return the following errors:

Example usage

Last updated

Was this helpful?