Share via


CallControl.HangUpRequested Event

Definition

Occurs when the device receives a request to hang up a call.

public:
 virtual event CallControlEventHandler ^ HangUpRequested;
// Register
event_token HangUpRequested(CallControlEventHandler const& handler) const;

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

// Revoke with event_revoker
CallControl::HangUpRequested_revoker HangUpRequested(auto_revoke_t, CallControlEventHandler const& handler) const;
public event CallControlEventHandler HangUpRequested;
function onHangUpRequested(eventArgs) { /* Your code */ }
callControl.addEventListener("hanguprequested", onHangUpRequested);
callControl.removeEventListener("hanguprequested", onHangUpRequested);
- or -
callControl.onhanguprequested = onHangUpRequested;
Public Custom Event HangUpRequested As CallControlEventHandler 

Event Type

Remarks

This class provides access to events that can be monitored and used for modifying the behavior of your telephony-aware app. The following JavaScript code snippet shows how to add event listeners to the CallControl class, and then to respond to one of the events, HangUpRequested.

Applies to