DS Server

RequestBarcodeTypeCallback Function

Function

Description

Callback function for requesting a barcode type value.

Syntax

function(<BarcodeType> barcodeType)

Examples

The following example demonstrates RequestBarcodeTypeCallback in a practical document-editing workflow. Callback function for requesting a barcode type value.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function requestBarcodeTypeCallback(barcodeType) {
    console.log("barcode type:", barcodeType);
}

function useRequestBarcodeTypeCallback(barcode) {
    barcode.getBarcodeType(requestBarcodeTypeCallback, onTxError);
}