ClaimedCashDrawer.ReleaseDeviceRequested Event

Definition

Occurs when the device gets a request to release its exclusive claim.

There is a small window of time (2 seconds) where the app may call RetainDeviceAsync to keep exclusive claim. Or alternatively, the app may release claim via Close to end the window immediately.

// Register
event_token ReleaseDeviceRequested(TypedEventHandler<ClaimedCashDrawer, IInspectable const&> const& handler) const;

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

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

Event Type

Applies to