ClaimedCashDrawer.ReleaseDeviceRequested 事件

定义

当设备收到释放其独占声明的请求时发生。

有一个小的时间窗口 (2 秒) 应用可以调用 RetainDeviceAsync 来保留独占声明。 或者,应用可以通过 Close 发布声明,以立即结束窗口。

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

事件类型

适用于