VoipPhoneCall.EndRequested Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Important
The types in the Windows.Phone.Networking.Voip namespace are deprecated, and may not be available in future versions of Windows. Instead, use the equivalent types in the Windows.ApplicationModel.Calls namespace.
Raised to alert the VoIP app that the call should be ended.
// Register
event_token EndRequested(TypedEventHandler<VoipPhoneCall, CallStateChangeEventArgs const&> const& handler) const;
// Revoke with event_token
void EndRequested(event_token const* cookie) const;
// Revoke with event_revoker
VoipPhoneCall::EndRequested_revoker EndRequested(auto_revoke_t, TypedEventHandler<VoipPhoneCall, CallStateChangeEventArgs const&> const& handler) const;
public event TypedEventHandler<VoipPhoneCall,CallStateChangeEventArgs> EndRequested;
function onEndRequested(eventArgs) { /* Your code */ }
voipPhoneCall.addEventListener("endrequested", onEndRequested);
voipPhoneCall.removeEventListener("endrequested", onEndRequested);
- or -
voipPhoneCall.onendrequested = onEndRequested;
Public Custom Event EndRequested As TypedEventHandler(Of VoipPhoneCall, CallStateChangeEventArgs)
Event Type
Windows requirements
App capabilities |
ID_CAP_VOIP [Windows Phone]
|
Remarks
After this event has been raised, the application is required to call NotifyCallEnded within 5 seconds.