Javascript: BarcodeFrame.refresh Method
Description
Refreshes the barcode.
Syntax
<void> BarcodeFrame.refresh([<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates BarcodeFrame.refresh in a practical document-editing workflow. Refreshes the barcode.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function refresh(barcodeFrame) {
barcodeFrame.refresh(
function() {
console.log("refresh completed.");
},
onTxError
);
}