nativescript-mrz-reader
MRZ Reader.
npm i --save nativescript-mrz-reader
  • Version: 1.0.0
  • GitHub:
  • Downloads:
    • Last Day:   0
    • Last Week:  0
    • Last Month: 39

NativeScript MRZ Reader

Installation

From the command prompt go to your app's root folder and execute:

tns plugin add nativescript-mrz-reader

Demo app

If you want a quickstart, clone the repo, cd src, and npm run demo.ios or npm run demo.android.

API

retrieveData

Initiates conitunous live scanning until it finds a MRZ code.

Parameters Type Description
callback (data: IMrzData) => void Callback function that is invoked when scanning is completed or cancelled.
var MrzReader = require("nativescript-mrz-reader");
MrzReader.retrieveData(function (result) {
console.log(result && result.value || "Cancelled");
});