Run our Sample Apps
The best way to start working with the Scandit Data Capture SDK is to run one of our sample apps. In this guide we will go through the available apps and how to run them.
We have created both simple and advanced samples that show you how use various features of the Scandit Data Capture SDK. The simple samples allow you to get going quickly, while the advanced samples show you how to use additional settings and setup the scanner for the best user experience.
Here’s a list of our available samples on Titanium:
Run the Samples
Before you can run a sample app, you need to go through a few simple steps:
Sign in to your Scandit account and download the newest Titanium modules at ssl.scandit.com/dashboard/sign-in. Unzip the archive and go to the samples folder.
Set the license key. To do this, sign in to your Scandit account and find your license key at ssl.scandit.com/dashboard/sign-in.
Once you have the license key, add it to the sample that you’d like to run:ScanditCore.DataCaptureContext.forLicenseKey('-- ENTER YOUR SCANDIT LICENSE KEY HERE --')
Install the dependencies.
npm install npm install -g alloy
If you’re using the zip archive downloaded from the dashboard, make sure to copy the distribution zip files into the sample folder.
Run the sample. We recommend running the samples on a physical device as otherwise no camera is available.
ti build -p [ios|android] -T device -C <DEVICE ID>
You probably need to setup signing for iOS. To do this, open the Xcode project and setup signing in the project settings. You can also run the sample from Xcode by clicking the Build & Run button.
Fully-customizable API: Single Scanning with Barcode Capture Samples
The Barcode Capture API offers developers a high level of flexibility with unlimited options for designing your own UI and workflow. You can use these samples as a starting point. We recommend that you familiarize yourself with our Best Practices for Usability to learn what to consider when using the Fully-customizable API.
Basic sample that uses the camera to read a single barcode.
Sample that uses the camera to read a single QR code that starts with “09:” but ignores/rejects all other codes.
Demonstrates how you can adapt the scanner settings best to your needs and experiment with all the options.
All our samples can be found in the archive that can be downloaded from our dashboard. Check the following section for more details.