Share via


MobileBroadbandAccountWatcher.Stopped Event

Definition

Occurs when the MobileBroadbandAccountWatcher has stopped.

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.

// Register
event_token Stopped(TypedEventHandler<MobileBroadbandAccountWatcher, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
MobileBroadbandAccountWatcher::Stopped_revoker Stopped(auto_revoke_t, TypedEventHandler<MobileBroadbandAccountWatcher, IInspectable const&> const& handler) const;
public event TypedEventHandler<MobileBroadbandAccountWatcher,object> Stopped;
function onStopped(eventArgs) { /* Your code */ }
mobileBroadbandAccountWatcher.addEventListener("stopped", onStopped);
mobileBroadbandAccountWatcher.removeEventListener("stopped", onStopped);
- or -
mobileBroadbandAccountWatcher.onstopped = onStopped;
Public Custom Event Stopped As TypedEventHandler(Of MobileBroadbandAccountWatcher, Object) 

Event Type

Windows requirements

App capabilities
cellularDeviceControl cellularDeviceIdentity

Remarks

You can begin the process of stopping a MobileBroadbandAccountWatcher by calling the Stop method. When the MobileBroadbandAccountWatcher fully stops, the Stopped event is raised.

You can query the status of a watcher using the Status property to determine if the watcher was aborted due to an unexpected internal error condition.

Applies to