CashDrawerCloseAlarm.AlarmTimeoutExpired 事件

定义

如果触发了警报超时,则允许应用收到通知的事件。

// Register
event_token AlarmTimeoutExpired(TypedEventHandler<CashDrawerCloseAlarm, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
CashDrawerCloseAlarm::AlarmTimeoutExpired_revoker AlarmTimeoutExpired(auto_revoke_t, TypedEventHandler<CashDrawerCloseAlarm, IInspectable const&> const& handler) const;
public event TypedEventHandler<CashDrawerCloseAlarm,object> AlarmTimeoutExpired;
function onAlarmTimeoutExpired(eventArgs) { /* Your code */ }
cashDrawerCloseAlarm.addEventListener("alarmtimeoutexpired", onAlarmTimeoutExpired);
cashDrawerCloseAlarm.removeEventListener("alarmtimeoutexpired", onAlarmTimeoutExpired);
- or -
cashDrawerCloseAlarm.onalarmtimeoutexpired = onAlarmTimeoutExpired;
Public Custom Event AlarmTimeoutExpired As TypedEventHandler(Of CashDrawerCloseAlarm, Object) 

事件类型

适用于