Partager via


ClaimedCashDrawer.ReleaseDeviceRequested Événement

Définition

Se produit lorsque l’appareil reçoit une demande de libération de sa revendication exclusive.

Il existe une petite fenêtre de temps (2 secondes) où l’application peut appeler RetainDeviceAsync pour conserver la revendication exclusive. Ou bien, l’application peut libérer la revendication via Fermer pour mettre fin immédiatement à la fenêtre.

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

Type d'événement

S’applique à