# getMrzType method

MrzType getMrzType()

Gets the type of the MRZ detected.

return Type of the MRZ detected. throws DocumentException An error has occurred during Document Library execution.

## Implementation

    MrzType getMrzType() {
      Pointer<Int32> pMrzType = calloc();
      try {
        var err = documentSDK.id3DocumentMrzReadingResult_GetMrzType(_pHandle.value, pMrzType);
        if (err != DocumentError.success.value) {
          throw DocumentException(err);
        }
        final vMrzType = MrzTypeX.fromValue(pMrzType.value);
        return vMrzType;
      } finally {
        calloc.free(pMrzType);
      }
    }