2019.2

Table Of Contents
Event Description
clear.cotg Removes the scanned Barcode data.
scan.cotg Opens the scanner.
The Barcode Scanner broadcasts the following events.
Event Description
set.cotg This event is fired after Barcode data has been set to the value of the input.
Camera
cotgPhotoWidget([options])
options
Optional. An array containing the desired settings, e.g. {quality: 50, height: 1024, width: 1024}.
For any unspecified options the default settings will be used.
Initialize the new Camera element with any settings that you want to be different from the
defaults.
Example: $('#myCamera').cotgPhotoWidget({quality: 50, height: 1024});
How to change the default settings is explained in another topic: "Changing default settings for
widgets" on page606.
Option Description Type Default
editimage
Allows the user to edit the image after
taking or selecting it. Which editing
options the user actually gets and how
they are presented depends on the
operating system of the device.
Boolean false
encodingtype
The returned image's file encoding: jpg or
png.
String 'jpg'
Page 617