Skip to main content

JavaScript SDK

Downloading the SDK

The Datalogic Javascript SDK can be downloaded from the Datalogic GitHub site.


The Datalogic JavaScript SDK allows users to write web apps that interface with the features of Datalogic Android devices through the Datalogic Enterprise Browser.

Click here for information on the Datalogic Enterprise Browser.

Download Contents

The SDK repository is organized as the contents of a web server. Its contents are described here:

index.htmlHome page for SDK samples
libContains JavaScript SDK implementation files
lib/dl_barcode.jsImplementation of barcode manager API
lib/dl_keyboard.jsImplementation of keyboard manager API
samplesContains SDK sample web pages
samples/barcode.htmlSample page to scan a barcode and display its contents.
samples/camera.htmlSample page to take a picture with the camera, including preview.
samples/config.htmlSample page to configure the scanner properties.
samples/led.htmlSample page to set LED actions on a JoyaTouch cradle.
samples/listeners.htmlSample page to listen to cradle insertion and extraction events.
samples/location.htmlSample page to display the current device location.
samples/microphone.htmlSample page to record audio from the device microphone.
samples/microphone.htmlSample page to read and write data to JoyaTouch cradle.
samples/trigger.htmlSample page to enable/disable the physical scanning triggers.
samples/unlock.htmlSample page to lock/unlock a cradle.
samples/resContains resource files used by sample pages
samples/scriptsContains JavaScript files used by sample pages
samples/stylesContains CSS styling files used by sample pages

Using SDK

Once you've downloaded the JavaScript SDK files, you can include the desired API's in your HTML pages through a script tag, i.e:

<script type="text/javascript" charset="utf-8" src="dl_barcode.js"></script>

Calls to the API may then be made in an additional script tag. Sample pages using the JavaScript SDK can be found in the repository on GitHub in the samples directory.


The SDK is divided into multiple namespaces, each with their own API for managing a different aspect of the device.

DLBarcodeMgrInterface for the barcode and scanning features of the device.
DLCradleMgrInterface for the cradle features of the device.
DLKeyboardMgrInterface for the physical keyboard of the device.

Sample Web Pages

The sample web pages provided in the SDK repository demonstrate the features of the Javascript SDK. These samples are also available on the web at Please note that these pages are only designed to be used within the Datalogic Enterprise Browser.