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

適用於