barcodeScanner
Last updated
Last updated
Activates a barcode scanner using the camera of the device.
Name | Description | Input Type | Default | Options | Required |
---|---|---|---|---|---|
N/A
The function to be executed if the barcode scanner is activated successfully.
The function to be executed if the barcode scanner is not activated successfully.
Coming Soon.
The user wants to scan a barcode and display the value in a dialog.
Drag a button to a page in the mobile designer. Select the event click and drag the barcodeScanner function to the event flow.
Drag the function to be executed when the barcode scanner is activated successfully. In this example, we are using the infoDialog function. Fill in the parameters of the function.
When the button is pressed, the barcode scanner will be activated. After scanning the barcode, the value will be displayed in a dialog box.
showFlipCameraButton
Show flip camera button. Supported on iOS and Android.
Boolean
true
true, false
No
showTorchButton
Show torch button. Supported on iOS and Android.
Boolean
true
true, false
No
torchOn
Launch with the torch switched on (if available). Supported on Android only.
Boolean
false
true, false
No
prompt
Prompt text. Supported on Android only.
String/Text
-
-
No
resultDuration
Display scanned text for X ms. 0 suppresses it entirely, default 1500. Supported on Android only.
Number
500?
-
No