Skip to content

Commit ad16013

Browse files
[CameraBarcodeScanner]: Allow AL devs to provide barcode format (#3326)
Adding support for `CameraBarcodeScannerProviderAddIn` to allow AL developers to provide barcode formats when requesting the camera barcode scanner. Fixes [AB#559749](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/559749)
1 parent 42ee792 commit ad16013

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/System Application/App/ControlAddIns/src/CameraBarcodeScannerProviderAddIn.ControlAddIn.al

+9
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ controladdin CameraBarcodeScannerProviderAddIn
2525
/// <param name="ResultDisplayDuration">The duration in milliseconds for which the barcode result should be displayed.</param>
2626
procedure RequestBarcodeAsync(ShowFlipCameraButton: Boolean; ShowTorchButton: Boolean; ResultDisplayDuration: Integer);
2727

28+
/// <summary>
29+
/// This method is used to request the camera barcode scanner.
30+
/// </summary>
31+
/// <param name="BarcodeFormats">A list of comma-separated barcode formats that the scanner should recognize. The available formats are: QR_CODE,DATA_MATRIX,UPC_A,UPC_E,EAN_8,EAN_13,CODE_39,CODE_93,CODE_128,CODABAR,ITF,RSS14,PDF_417,RSS_EXPANDED,MSI,AZTEC</param>
32+
/// <param name="ShowFlipCameraButton">Indicates whether the flip camera button should be shown.</param>
33+
/// <param name="ShowTorchButton">Indicates whether the torch button should be shown.</param>
34+
/// <param name="ResultDisplayDuration">The duration in milliseconds for which the barcode result should be displayed.</param>
35+
procedure RequestBarcodeAsync(BarcodeFormats: Text; ShowFlipCameraButton: Boolean; ShowTorchButton: Boolean; ResultDisplayDuration: Integer);
36+
2837
/// <summary>
2938
/// This event is raised when the control is ready.
3039
/// </summary>

0 commit comments

Comments
 (0)