ClaimedPosPrinter.ReleaseDeviceRequested ClaimedPosPrinter.ReleaseDeviceRequested ClaimedPosPrinter.ReleaseDeviceRequested ClaimedPosPrinter.ReleaseDeviceRequested ClaimedPosPrinter.ReleaseDeviceRequested Event

Definition

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

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

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

// Revoke with event_revoker
ReleaseDeviceRequested_revoker ReleaseDeviceRequested(auto_revoke_t, TypedEventHandler<ClaimedPosPrinter, PosPrinterReleaseDeviceRequestedEventArgs> const& handler) const;
public event TypedEventHandler<ClaimedPosPrinter, PosPrinterReleaseDeviceRequestedEventArgs> ReleaseDeviceRequested
Public Event ReleaseDeviceRequested As TypedEventHandler (Of ClaimedPosPrinter, PosPrinterReleaseDeviceRequestedEventArgs)
function onReleaseDeviceRequested(eventArgs){/* Your code */}


claimedPosPrinter.addEventListener("releasedevicerequested", onReleaseDeviceRequested);
claimedPosPrinter.removeEventListener("releasedevicerequested", onReleaseDeviceRequested);

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.

See also