-
Notifications
You must be signed in to change notification settings - Fork 196
/
Copy pathCameraBarcodeScannerProviderAddIn.ControlAddIn.al
56 lines (47 loc) · 2.81 KB
/
CameraBarcodeScannerProviderAddIn.ControlAddIn.al
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
namespace System.Device;
/// <summary>
/// The control add-in for the camera barcode scanner provider.
/// </summary>
controladdin CameraBarcodeScannerProviderAddIn
{
Scripts = 'Resources\emptyScript.js';
/// <summary>
/// This method is used to request the camera barcode scanner.
/// </summary>
procedure RequestBarcodeAsync();
/// <summary>
/// This method is used to request the camera barcode scanner.
/// </summary>
/// <param name="ShowFlipCameraButton">Indicates whether the flip camera button should be shown.</param>
/// <param name="ShowTorchButton">Indicates whether the torch button should be shown.</param>
/// <param name="ResultDisplayDuration">The duration in milliseconds for which the barcode result should be displayed.</param>
procedure RequestBarcodeAsync(ShowFlipCameraButton: Boolean; ShowTorchButton: Boolean; ResultDisplayDuration: Integer);
/// <summary>
/// This method is used to request the camera barcode scanner.
/// </summary>
/// <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>
/// <param name="ShowFlipCameraButton">Indicates whether the flip camera button should be shown.</param>
/// <param name="ShowTorchButton">Indicates whether the torch button should be shown.</param>
/// <param name="ResultDisplayDuration">The duration in milliseconds for which the barcode result should be displayed.</param>
procedure RequestBarcodeAsync(BarcodeFormats: Text; ShowFlipCameraButton: Boolean; ShowTorchButton: Boolean; ResultDisplayDuration: Integer);
/// <summary>
/// This event is raised when the control is ready.
/// </summary>
/// <param name="IsSupported">Whether the camera barcode scanner is supported on the device.</param>
event ControlAddInReady(IsSupported: Boolean);
/// <summary>
/// This event is raised when the barcode is available.
/// </summary>
/// <param name="Barcode">The barcode value.</param>
/// <param name="Format">The barcode format.</param>
event BarcodeAvailable(Barcode: Text; Format: Text)
/// <summary>
/// This event is raised when the barcode scanner had a failure.
/// </summary>
/// <param name="Failure">The barcode failure.</param>
event BarcodeFailure(Failure: Enum "BarcodeFailure")
}