Jaa


ESimProfileMetadata.StateChanged Event

Definition

Occurs when the state of the eSIM profile metadata 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 StateChanged(TypedEventHandler<ESimProfileMetadata, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
ESimProfileMetadata::StateChanged_revoker StateChanged(auto_revoke_t, TypedEventHandler<ESimProfileMetadata, IInspectable const&> const& handler) const;
public event TypedEventHandler<ESimProfileMetadata,object> StateChanged;
function onStateChanged(eventArgs) { /* Your code */ }
eSimProfileMetadata.addEventListener("statechanged", onStateChanged);
eSimProfileMetadata.removeEventListener("statechanged", onStateChanged);
- or -
eSimProfileMetadata.onstatechanged = onStateChanged;
Public Custom Event StateChanged As TypedEventHandler(Of ESimProfileMetadata, Object) 

Event Type

Windows requirements

App capabilities
Microsoft.eSIMManagement_8wekyb3d8bbwe

Applies to