ClaimedPosPrinter.Closed ClaimedPosPrinter.Closed ClaimedPosPrinter.Closed ClaimedPosPrinter.Closed ClaimedPosPrinter.Closed Event

Definition

Event that is raised when the ClaimedPosPrinter is closed.

public : event TypedEventHandler<ClaimedPosPrinter, ClaimedPosPrinterClosedEventArgs> Closed
// Register
event_token Closed(TypedEventHandler<ClaimedPosPrinter, ClaimedPosPrinterClosedEventArgs> 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<ClaimedPosPrinter, ClaimedPosPrinterClosedEventArgs> const& handler) const;
public event TypedEventHandler<ClaimedPosPrinter, ClaimedPosPrinterClosedEventArgs> Closed
Public Event Closed As TypedEventHandler (Of ClaimedPosPrinter, ClaimedPosPrinterClosedEventArgs)
function onClosed(eventArgs){/* Your code */}


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

Remarks

When an app is suspended, all ClaimedPosPrinter objects are closed. This event can be useful to determine when printer connections need to be re-established.

See also