ClaimedCashDrawer.Closed ClaimedCashDrawer.Closed ClaimedCashDrawer.Closed ClaimedCashDrawer.Closed ClaimedCashDrawer.Closed Event

Definition

Event that is raised when the ClaimedCashDrawer is closed.

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

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

// Revoke with event_revoker
Closed_revoker Closed(auto_revoke_t, TypedEventHandler<ClaimedCashDrawer, ClaimedCashDrawerClosedEventArgs> const& handler) const;
public event TypedEventHandler<ClaimedCashDrawer, ClaimedCashDrawerClosedEventArgs> Closed
Public Event Closed As TypedEventHandler (Of ClaimedCashDrawer, ClaimedCashDrawerClosedEventArgs)
function onClosed(eventArgs){/* Your code */}


claimedCashDrawer.addEventListener("closed", onClosed);
claimedCashDrawer.removeEventListener("closed", onClosed);

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.

See also