CallControl.HangUpRequested 事件

定义

当设备收到挂断呼叫的请求时发生。

public:
 virtual event CallControlEventHandler ^ HangUpRequested;
// Register
event_token HangUpRequested(CallControlEventHandler const& handler) const;

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

// Revoke with event_revoker
CallControl::HangUpRequested_revoker HangUpRequested(auto_revoke_t, CallControlEventHandler const& handler) const;
public event CallControlEventHandler HangUpRequested;
function onHangUpRequested(eventArgs) { /* Your code */ }
callControl.addEventListener("hanguprequested", onHangUpRequested);
callControl.removeEventListener("hanguprequested", onHangUpRequested);
- or -
callControl.onhanguprequested = onHangUpRequested;
Public Custom Event HangUpRequested As CallControlEventHandler 

事件类型

注解

此类提供对事件的访问权限,这些事件可以监视并用于修改电话感知应用的行为。 以下 JavaScript 代码片段演示如何将事件侦听器添加到 CallControl 类,然后响应其中一个事件 HangUpRequested

适用于