1.0.0 • Published 7 years ago
nativescript-mrz-reader v1.0.0
NativeScript MRZ Reader
Installation
From the command prompt go to your app's root folder and execute:
tns plugin add nativescript-mrz-readerDemo 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");
});1.0.0
7 years ago