Share via


LockScreenCallUI.Closed Event

Definition

Deprecated. Occurs when the lock screen interaction is complete.

// Register
event_token Closed(TypedEventHandler<LockScreenCallUI, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
LockScreenCallUI::Closed_revoker Closed(auto_revoke_t, TypedEventHandler<LockScreenCallUI, IInspectable const&> const& handler) const;
public event TypedEventHandler<LockScreenCallUI,object> Closed;
function onClosed(eventArgs) { /* Your code */ }
lockScreenCallUI.addEventListener("closed", onClosed);
lockScreenCallUI.removeEventListener("closed", onClosed);
- or -
lockScreenCallUI.onclosed = onClosed;
Public Custom Event Closed As TypedEventHandler(Of LockScreenCallUI, Object) 

Event Type

Windows requirements

App capabilities
phoneCallHistory phoneCallHistorySystem

Remarks

The Closed event fires when the app is removed from the lock screen by any means. After this event fires, the LockScreenCallUI object is no longer valid. Any further attempt to use the LockScreenCallUI object can either silently fail or explicitly fail with RPC_E_DISCONNECTED.

The Closed event doesn't use the object parameter passed to it. The object parameter exists only because event handlers require it.

Applies to