VoipPhoneCall.HoldRequested 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重要
Windows.Phone.Networking.Voip 命名空间中的类型已弃用,将来的 Windows 版本中可能不可用。 请改用 Windows.ApplicationModel.Calls 命名空间中的等效类型。
引发以提醒 VoIP 应用应暂停呼叫。
// Register
event_token HoldRequested(TypedEventHandler<VoipPhoneCall, CallStateChangeEventArgs const&> const& handler) const;
// Revoke with event_token
void HoldRequested(event_token const* cookie) const;
// Revoke with event_revoker
VoipPhoneCall::HoldRequested_revoker HoldRequested(auto_revoke_t, TypedEventHandler<VoipPhoneCall, CallStateChangeEventArgs const&> const& handler) const;
public event TypedEventHandler<VoipPhoneCall,CallStateChangeEventArgs> HoldRequested;
function onHoldRequested(eventArgs) { /* Your code */ }
voipPhoneCall.addEventListener("holdrequested", onHoldRequested);
voipPhoneCall.removeEventListener("holdrequested", onHoldRequested);
- or -
voipPhoneCall.onholdrequested = onHoldRequested;
Public Custom Event HoldRequested As TypedEventHandler(Of VoipPhoneCall, CallStateChangeEventArgs)
事件类型
Windows 要求
应用功能 |
ID_CAP_VOIP [Windows Phone]
|
注解
引发此事件后,应用程序需要在 5 秒内调用 NotifyCallHeld 。