Control add-in CameraBarcodeScannerProviderAddIn in 26

App
System Application
Namespace
System.Device

Procedures, 3

Versions171819202122232425262728latest

Source242526272829

Source in 26

src/System Application/App/ControlAddIns/src/CameraBarcodeScannerProviderAddIn.ControlAddIn.al57 lines, Copyright (c) Microsoft Corporation. MIT

// ------------------------------------------------------------------------------------------------
// 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")
}

Procedures, 3

NameParametersReturnsAccessObsolete
RequestBarcodeAsync()public-
RequestBarcodeAsync(Boolean, Boolean, Integer)public-
RequestBarcodeAsync(Text, Boolean, Boolean, Integer)public-