VoipPhoneCall.AnswerRequested 事件

定义

当用户接听来电时引发。

// Register
event_token AnswerRequested(TypedEventHandler<VoipPhoneCall, CallAnswerEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
VoipPhoneCall::AnswerRequested_revoker AnswerRequested(auto_revoke_t, TypedEventHandler<VoipPhoneCall, CallAnswerEventArgs const&> const& handler) const;
public event TypedEventHandler<VoipPhoneCall,CallAnswerEventArgs> AnswerRequested;
function onAnswerRequested(eventArgs) { /* Your code */ }
voipPhoneCall.addEventListener("answerrequested", onAnswerRequested);
voipPhoneCall.removeEventListener("answerrequested", onAnswerRequested);
- or -
voipPhoneCall.onanswerrequested = onAnswerRequested;
Public Custom Event AnswerRequested As TypedEventHandler(Of VoipPhoneCall, CallAnswerEventArgs) 

事件类型

Windows 要求

应用功能
phoneCallHistory phoneCallHistorySystem voipCall

注解

系统引发 AnswerRequested 事件,向 VoIP 应用程序发出系统已接受呼叫的信号。 引发事件后,VoIP 应用程序必须在 5 秒内调用 NotifyCallActive 。 有关更多详细信息 ,请参阅 VoipPhoneCall

适用于