👇 See API FAQ below 👇
🪦 RIP Axway Amplify Titanium (2010 - 2022)
🪦 RIP Axway Amplify Cloud Services (2012 - 2022)
🛑 All products affected by the announcements will not be supported by Axway effective their EOL dates in 2022.
Some Open-Source versions of Axway products will live on after End-of-Life (EOL) Axway Amplify product announcements. However, some products are closed-source and will NOT continue after the shut down in 2022.
👉 Stay tuned for more info as plans are being made to save the Titanium project and move it under the control of a independent group of developers.
API FAQ:
@titanium/scandit
Scandit SDK Barcode Scanner Module for Titanium Native Mobile Apps
📝 Description
This is a repackaging of the compiled iOS and Android modules for the Scandit SDK for Titanium to allow for installation via npm.
🚀 Getting Started
- Install
@titanium/scandit
in root of project
npm install @titanium/scandit
Obtain SDK API Key
You need to log into your Scandit Account (or create a new account) to obtain your Scandit API Key to use with this module.
https://ssl.scandit.com/account/sdk
Using barcode scanner
const scanditsdk = require('@titanium/scandit');
scanditsdk.appKey = 'YOUR_SCANDIT_API_KEY';
scanner = scanditsdk.createView({
top: 0,
width: Ti.UI.FILL,
height: Ti.UI.FILL,
});
scanner.init();
scanner.showSearchBar(false);
scanner.setVibrateEnabled(true);
scanner.setBeepEnabled(true);
scanner.setTorchEnabled(true);
scanner.showToolBar(false);
scanner.setViewfinderSize(0.7, 0.7, 0.6, 0.4);
scanner.drawViewfinder(true);
scanner.restrictActiveScanningArea(true);
scanner.setScanningHotSpot(0.5, 0.5);
scanner.force2dRecognition(false);
scanner.setEan13AndUpc12Enabled(true);
scanner.setEan8Enabled(true);
scanner.set1DScanningEnabled(true);
scanner.setUpceEnabled(true);
scanner.setCode39Enabled(true);
scanner.setCode128Enabled(true);
scanner.setQrEnabled(true);
scanner.set2DScanningEnabled(true);
scanner.setDataMatrixEnabled(true);
scanner.setMaxiCodeEnabled(true);
scanner.setItfEnabled(true);
scanner.setCode25Enabled(true);
scanner.setGS1DataBarLimitedEnabled(true);
scanner.setGS1DataBarExpandedEnabled(true);
scanner.setGS1DataBarEnabled(true);
scanner.setPdf417Enabled(true);
scanner.setRM4SCCEnabled(true);
scanner.setKIXEnabled(true);
scanner.setMicroPdf417Enabled(true);
scanner.setCode128Enabled(true);
scanner.setCode11Enabled(true);
scanner.setCode93Enabled(true);
scanner.setCode39Enabled(true);
scanner.setSuccessCallback(e => {
console.error('scanner.openScanner.setSuccessCallback: entering');
scanner.stopScanning();
const upcNumber = e.barcode;
const upcType = e.symbology;
}
✨Features
iOS: com.mirasense.scanditsdk 5.13.1
Android: com.mirasense.scanditsdk 5.13.1
📚Learn More
📣 Feedback
Have an idea or a comment? Join in the conversation here!
©️ Legal
Modules licensed by Scandit AG
Copyright (c) 2018 by Scandit AG
Usage of this module is subject to the Terms of the Service Agreement with Scandit AG (available at http://www.scandit.com/pricing)
as well as your Terms of Service agreement with Appcelerator, Inc.
Alloy is developed by Appcelerator and the community and is Copyright © 2012-Present by Appcelerator, Inc. All Rights Reserved.
Alloy is made available under the Apache Public License, version 2. See their license file for more information.
Appcelerator is a registered trademark of Appcelerator, Inc. Titanium is a registered trademark of Appcelerator, Inc. Please see the LEGAL information about using trademarks, privacy policy, terms of usage and other legal information at http://www.appcelerator.com/legal.