Share via


VoipPhoneCall.AnswerRequested Event

Definition

Raised when the user answers an incoming call.

// 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) 

Event Type

Windows requirements

App capabilities
phoneCallHistory phoneCallHistorySystem voipCall

Remarks

The system raises the AnswerRequested event to signal to your VoIP application that the call has been accepted by the system. After the event is raised, your VoIP application must call NotifyCallActive within 5 seconds. See VoipPhoneCall for more details.

Applies to