Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
cordova-plugin-ipda018-scanner
Advanced tools
Readme
This plugin provides the
Scanner
object which has some functions to customize and control the Scanner on IPDA018 or PDF417 devices.
This plugin only works on Android
This plugin has only been tested in Cordova 3.2 or greater, and its use in previous Cordova versions is not recommended (potential conflict with keyboard customization code present in the core in previous Cordova versions).
From npm (stable)
cordova plugin add cordova-plugin-ipda018-scanner
From github latest (may not be stable)
cordova plugin add https://github.com/guatedude2/cordova-plugin-ipda018-scanner
document.addEventListener('deviceready', function() {
// Open the device
Scanner.open();
// Add scan event
Scanner.on('scan', function (barcode) {
console.log('BARCODE', barcode);
});
});
Opens the scanner reciever
Scanner.open();
Closes the scanner reciever
Scanner.close();
Enables or disables vibration when scanning succeeds
Scanner.setVibrateEnabled(boolean);
Enables or disables the beep sound when scanning succeeds
Scanner.setBeepEnabled(boolean)
Returns whether the scanner is open or not.
[Read Only] Scanner.isOpen (boolean)
Returns whether the scanner vibrate-on-scan is enabled or not.
[Read Only] Scanner.vibrateEnabled (boolean)
Returns whether the scanner beep-on-scan is enabled or not.
[Read Only] Scanner.beepEnabled (boolean)
This event is fired when the device is opened
window.addEventListener('scannerOpen', function () {
// Describe your logic which will be run each time scanner is open
});
This event is fired when the device is closed
window.addEventListener('scannerClose', function () {
// Describe your logic which will be run each time scanner is close
});
This event is fired when the device scans succesfully
window.addEventListener('scannerScan', function (event) {
// Describe your logic which will be run each time scanner scans successfully
console.log('Barcode', event.details);
});
This event is fired when the scanner vibrate settings is enabled or disabled
window.addEventListener('scannerVibrateChange', function (event) {
// Describe your logic which will be run each time the vibrate setting is changed
});
This event is fired when the scanner beep settings is enabled or disabled
window.addEventListener('scannerBeepChange', function (event) {
// Describe your logic which will be run each time the beep setting is changed
});
1.1.2
1.1.0
1.0.0
FAQs
Cordova Keyboard Plugin
The npm package cordova-plugin-ipda018-scanner receives a total of 5 weekly downloads. As such, cordova-plugin-ipda018-scanner popularity was classified as not popular.
We found that cordova-plugin-ipda018-scanner demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.