ClaimedPosPrinter.ReleaseDeviceRequested 事件

定义

当服务点打印机收到释放其独占声明的请求时发生。

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

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

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

事件类型

注解

发生此事件时,应用有两秒的时间窗口来调用 RetainDeviceAsync ,以便应用可以在设备上保留独占声明。 或者,应用可以调用 Close 来释放声明并立即结束窗口。

适用于

另请参阅