PosPrinter.StatusUpdated Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the status of the power or availability of the point-of-service printer changes.
// Register
event_token StatusUpdated(TypedEventHandler<PosPrinter, PosPrinterStatusUpdatedEventArgs const&> const& handler) const;
// Revoke with event_token
void StatusUpdated(event_token const* cookie) const;
// Revoke with event_revoker
PosPrinter::StatusUpdated_revoker StatusUpdated(auto_revoke_t, TypedEventHandler<PosPrinter, PosPrinterStatusUpdatedEventArgs const&> const& handler) const;
public event TypedEventHandler<PosPrinter,PosPrinterStatusUpdatedEventArgs> StatusUpdated;
function onStatusUpdated(eventArgs) { /* Your code */ }
posPrinter.addEventListener("statusupdated", onStatusUpdated);
posPrinter.removeEventListener("statusupdated", onStatusUpdated);
- or -
posPrinter.onstatusupdated = onStatusUpdated;
Public Custom Event StatusUpdated As TypedEventHandler(Of PosPrinter, PosPrinterStatusUpdatedEventArgs)