1.0.0 • Published 5 years ago

nativescript-mrz-reader v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
5 years ago

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.

ParametersTypeDescription
callback(data: IMrzData) => voidCallback 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");
});