ESim class usage and instantiation

Verica Radulovic 0 Reputation points
2023-10-31T15:31:07.2833333+00:00

Hello.

I need to instantiate the ESim class to be able to use it for the purpose of profile handling.

I am trying to run the UWP application from Visual Studio 2022 and to instantiate ESimWatcher using ESimManager.TryCreateESimWatcher() method. This method returns NULL.

The device I am running the application on has an ESim component.

How can I get my application to have a valid instance of ESim class that I can use to call methods like GetProfiles() etc?

I need an actual example of how to instantiate the ESim object that I would use to call these methods.

And, please, do not point me to the documentation examples. They didn't help me much so far.

Thanks in advance for any assistance.

Universal Windows Platform (UWP)
{count} votes