Scan QR barcode
- 18 May 2022
- 1 Minute to read
-
DarkLight
-
PDF
Scan QR barcode
- Updated on 18 May 2022
- 1 Minute to read
-
DarkLight
-
PDF
Opens a view to scan a QR/barcode.
Once the camera recognizes a QR/barcode, the view closes and the first output is triggered.
If the view is closed via the Cancel button, the second output is triggered without an error.
If scanning the QR/barcode errors, the third output is triggered with the error.
Web is currently not supported.
Input arguments
Label | Key | Type | Required? | Default | Description |
---|---|---|---|---|---|
Code type to recognize | codeType |
String | Yes | qr | QR/barcode type to recognize. |
Cancel button label | cancelLabel |
String | Yes | Cancel | Text label on the cancel button. |
Output arguments
Number of outputs: 3
Label | Key | Type | Description |
---|---|---|---|
QR barcode content | codeContent |
String | Text content of the scanned QR barcode |
Events
No events.
Errors
Label | Code | Description |
---|---|---|
Permission denied | permissionDenied |
Thrown when the user does not have sufficient permissions to use the camera. |
Camera not found | cameraNotFound |
Thrown when the current device doesn't have a camera. |
Unknown error | unknown |
Thrown when calling the native API resulted in an unknown error. |
Was this article helpful?