0.2.4 • Published 7 years ago
cordova-plugin-lcs v0.2.4
Cordova Plugin LCR
Simple plugin that returns LCR result
Using
Create a new Cordova Project
$ cordova create testlcr com.example.testlcr testLCRInstall the plugin
$ cd testlcr
copy iOS lcr plugin into ./plugins
$ cordova plugin add ./plugins/lcrEdit www/js/index.js and add the following code inside onDeviceReady
var success = function(message) {
alert(message);
}
var failure = function() {
alert("Error calling Hello Plugin");
}
lcr.scan(success, failure);Install iOS or Android platform
cordova platform add ios
cordova platform add androidRun the code
cordova run More Info
For more information on setting up Cordova see the documentation
For more info on plugins see the Plugin Development Guide