ESimWatcher.Added Event

Definition

Occurs when an ESim is added to the device.

Note

This functionality is available only to mobile operator apps and UWP apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Microsoft Store, then you'll need to request special approval to use the custom capability Microsoft.eSIMManagement_8wekyb3d8bbwe. For more info, see Custom capabilities.

// Register
event_token Added(TypedEventHandler<ESimWatcher, ESimAddedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ESimWatcher::Added_revoker Added(auto_revoke_t, TypedEventHandler<ESimWatcher, ESimAddedEventArgs const&> const& handler) const;
public event TypedEventHandler<ESimWatcher,ESimAddedEventArgs> Added;
function onAdded(eventArgs) { /* Your code */ }
eSimWatcher.addEventListener("added", onAdded);
eSimWatcher.removeEventListener("added", onAdded);
- or -
eSimWatcher.onadded = onAdded;
Public Custom Event Added As TypedEventHandler(Of ESimWatcher, ESimAddedEventArgs) 

Event Type

Windows requirements

App capabilities
Microsoft.eSIMManagement_8wekyb3d8bbwe

Applies to