ClaimedBarcodeScanner.ErrorOccurred Event

Definition

Occurs when there is a problem in reading a barcode.

// Register
event_token ErrorOccurred(TypedEventHandler<ClaimedBarcodeScanner, BarcodeScannerErrorOccurredEventArgs const&> const& handler) const;

// Revoke with event_token
void ErrorOccurred(event_token const* cookie) const;

// Revoke with event_revoker
ClaimedBarcodeScanner::ErrorOccurred_revoker ErrorOccurred(auto_revoke_t, TypedEventHandler<ClaimedBarcodeScanner, BarcodeScannerErrorOccurredEventArgs const&> const& handler) const;
public event TypedEventHandler<ClaimedBarcodeScanner,BarcodeScannerErrorOccurredEventArgs> ErrorOccurred;
function onErrorOccurred(eventArgs) { /* Your code */ }
claimedBarcodeScanner.addEventListener("erroroccurred", onErrorOccurred);
claimedBarcodeScanner.removeEventListener("erroroccurred", onErrorOccurred);
- or -
claimedBarcodeScanner.onerroroccurred = onErrorOccurred;
Public Custom Event ErrorOccurred As TypedEventHandler(Of ClaimedBarcodeScanner, BarcodeScannerErrorOccurredEventArgs) 

Event Type

Applies to