Share via


ClaimedBarcodeScanner.Closed Event

Definition

Event that is raised when the ClaimedBarcodeScanner is closed.

// Register
event_token Closed(TypedEventHandler<ClaimedBarcodeScanner, ClaimedBarcodeScannerClosedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ClaimedBarcodeScanner::Closed_revoker Closed(auto_revoke_t, TypedEventHandler<ClaimedBarcodeScanner, ClaimedBarcodeScannerClosedEventArgs const&> const& handler) const;
public event TypedEventHandler<ClaimedBarcodeScanner,ClaimedBarcodeScannerClosedEventArgs> Closed;
function onClosed(eventArgs) { /* Your code */ }
claimedBarcodeScanner.addEventListener("closed", onClosed);
claimedBarcodeScanner.removeEventListener("closed", onClosed);
- or -
claimedBarcodeScanner.onclosed = onClosed;
Public Custom Event Closed As TypedEventHandler(Of ClaimedBarcodeScanner, ClaimedBarcodeScannerClosedEventArgs) 

Event Type

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Remarks

When an application is suspended, all ClaimedBarcodeScanner objects are closed. This event can be useful to determine when barcode scanner connections need to be re-established.

Applies to

See also