Share via


ClaimedPosPrinter.ReleaseDeviceRequested Event

Definition

Occurs when a point-of-service printer gets a request to release its exclusive claim.

// Register
event_token ReleaseDeviceRequested(TypedEventHandler<ClaimedPosPrinter, PosPrinterReleaseDeviceRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ClaimedPosPrinter::ReleaseDeviceRequested_revoker ReleaseDeviceRequested(auto_revoke_t, TypedEventHandler<ClaimedPosPrinter, PosPrinterReleaseDeviceRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<ClaimedPosPrinter,PosPrinterReleaseDeviceRequestedEventArgs> ReleaseDeviceRequested;
function onReleaseDeviceRequested(eventArgs) { /* Your code */ }
claimedPosPrinter.addEventListener("releasedevicerequested", onReleaseDeviceRequested);
claimedPosPrinter.removeEventListener("releasedevicerequested", onReleaseDeviceRequested);
- or -
claimedPosPrinter.onreleasedevicerequested = onReleaseDeviceRequested;
Public Custom Event ReleaseDeviceRequested As TypedEventHandler(Of ClaimedPosPrinter, PosPrinterReleaseDeviceRequestedEventArgs) 

Event Type

Remarks

When this event occurs, the app has a two-second window of time to call the RetainDeviceAsync so that the app can keep exclusive claim on the device. Alternatively, the app can call Close to release the claim and end the window immediately.

Applies to

See also