ESim.ProfileChanged 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.
Occurs when the collection of eSIM profiles changes, or when a property of one of the profiles in the collection changes.
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 ProfileChanged(TypedEventHandler<ESim, IInspectable const&> const& handler) const;
// Revoke with event_token
void ProfileChanged(event_token const* cookie) const;
// Revoke with event_revoker
ESim::ProfileChanged_revoker ProfileChanged(auto_revoke_t, TypedEventHandler<ESim, IInspectable const&> const& handler) const;
public event TypedEventHandler<ESim,object> ProfileChanged;
function onProfileChanged(eventArgs) { /* Your code */ }
eSim.addEventListener("profilechanged", onProfileChanged);
eSim.removeEventListener("profilechanged", onProfileChanged);
- or -
eSim.onprofilechanged = onProfileChanged;
Public Custom Event ProfileChanged As TypedEventHandler(Of ESim, Object)
Event Type
TypedEventHandler<ESim,IInspectable>
Windows requirements
App capabilities |
Microsoft.eSIMManagement_8wekyb3d8bbwe
|