Include ScanditSDK.js in index.html file
<script src="ScanditSDK.js" charset="utf-8" type="text/javascript"></script>
Using plugin by call function:
window.plugins.ScanditSDK.scan(
function(value, type){
console.log(value);
console.log(type);
}, function(){
console.log("error");
}, "application key here",
{vibrate : true, beep : true, torch : true}
);
Enables or disables the recognition of 1D codes.
Enables or disables the recognition of 2D codes.
Changes the location of the spot where the recognition actively scans for barcodes. X and y can
be between 0 and 1, where 0/0 is the top left corner and 1/1 the bottom right corner.
Enables or disables the sound played when a code was recognized.
Enables or disables the vibration when a code was recognized.
Enables or disables the lucky shot option if the barcode was not definitely recognized.
Sets the font of all text displayed in the UI (must be known by iOS).
Sets the text that will be displayed alongside the lucky shot to tell the user what to do, to
use the displayed barcode.
Sets the text that will be displayed above the viewfinder to tell the user to align it with the
barcode that should be recognized.
Sets the text that will be displayed above the viewfinder to tell the user to align it with the
barcode and hold still because a potential code seems to be on the screen.
Sets the text that will be displayed above the viewfinder to tell the user to hold still because
a barcode is aligned with the box and the recognition is trying to recognize it.
Sets the caption of the manual entry at the top when a barcode of valid length has been entered.
Sets the caption of the manual entry at the top when no barcode of valid length has been entered.
Sets the text shown in the manual entry field when nothing has been entered yet.
Sets the caption of the toolbar button.
Sets the color of the static viewfinder and while tracking before the code has been recognized.
Sets the color of the viewfinder when the code has been recognized.
Sets the minimum size a barcode in the manual entry field has to have to possibly be valid.
Sets the maximum size a barcode in the manual entry field can have to possibly be valid.
Sets the amount of seconds after which the scanner automatically shuts down and calls the fail
method. 0 means it will never shut down on its own.