Share via


ClaimedCashDrawer.Closed Event

Definition

Event that is raised when the ClaimedCashDrawer is closed.

// Register
event_token Closed(TypedEventHandler<ClaimedCashDrawer, ClaimedCashDrawerClosedEventArgs const&> const& handler) const;

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

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

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 app is suspended, all ClaimedCashDrawer objects are closed. This event can be useful to determine when cash drawer connections need to be re-established.

Applies to

See also