ClaimedPosPrinter.ReleaseDeviceRequested 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 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.