Freigeben über


ClaimedCashDrawer.ReleaseDeviceRequested Ereignis

Definition

Tritt auf, wenn das Gerät eine Anforderung zur Freigabe seines exklusiven Anspruchs erhält.

Es gibt ein kleines Zeitfenster (2 Sekunden), in dem die App RetainDeviceAsync aufrufen kann, um den exklusiven Anspruch beizubehalten. Alternativ kann die App den Anspruch über Schließen freigeben, um das Fenster sofort zu beenden.

// 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) 

Ereignistyp

Gilt für: