Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.8 KB

mobilebroadbandaccountwatcher_start_1587696324.md

File metadata and controls

31 lines (22 loc) · 1.8 KB
-api-id -api-type -api-device-family-note
M:Windows.Networking.NetworkOperators.MobileBroadbandAccountWatcher.Start
winrt method
xbox

Windows.Networking.NetworkOperators.MobileBroadbandAccountWatcher.Start

-description

Starts the account watcher.

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 special approval. For more information, see the Restricted capabilities section in the App capability declarations topic.

-remarks

When you start the account watcher, it first enumerates all Mobile Broadband Accounts and raises an AccountAdded event for each account found. When the enumeration operation is completed, the account watcher raises the EnumerationCompleted event. After the EnumerationCompleted event is raised, the account watcher continues to raise account-related events (AccountAdded, AccountUpdated, and AccountRemoved) until you call the Stop method.

Note that you do not need to explicitly stop and start the account watcher on App Suspend/Resume events. Instead, starting and starting the watcher is handled by the API itself.

-examples

-see-also

-capabilities

cellularDeviceIdentity, cellularDeviceControl