Share via


LockScreenCallUI.EndRequested Event

Definition

Deprecated. Occurs when the lock screen wants to end the call.

// Register
event_token EndRequested(TypedEventHandler<LockScreenCallUI, LockScreenCallEndRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
LockScreenCallUI::EndRequested_revoker EndRequested(auto_revoke_t, TypedEventHandler<LockScreenCallUI, LockScreenCallEndRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<LockScreenCallUI,LockScreenCallEndRequestedEventArgs> EndRequested;
function onEndRequested(eventArgs) { /* Your code */ }
lockScreenCallUI.addEventListener("endrequested", onEndRequested);
lockScreenCallUI.removeEventListener("endrequested", onEndRequested);
- or -
lockScreenCallUI.onendrequested = onEndRequested;
Public Custom Event EndRequested As TypedEventHandler(Of LockScreenCallUI, LockScreenCallEndRequestedEventArgs) 

Event Type

Windows requirements

App capabilities
phoneCallHistory phoneCallHistorySystem

Remarks

The EndRequested event typically happens when the user taps the “End call” button on the lock screen, but the event can also happen under other conditions. For example, suppose a call comes in while a call is already active on the lock screen. By accepting the new call on the lock screen, the previous call ends.

When the EndRequested event handler returns, the app is removed from the lock screen. An app can extend its time on the lock screen by calling LockScreenCallEndRequestedEventArgs.GetDeferral to request a deferral. If the app requested a deferral, the app is removed from the lock screen when the deferral completes or the deadline passes.

Applies to