Share via


MobileBroadbandSlotManager.CurrentSlotIndexChanged Event

Definition

An event that's raised when the current slot index is changed.

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 CurrentSlotIndexChanged(TypedEventHandler<MobileBroadbandSlotManager, MobileBroadbandCurrentSlotIndexChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MobileBroadbandSlotManager::CurrentSlotIndexChanged_revoker CurrentSlotIndexChanged(auto_revoke_t, TypedEventHandler<MobileBroadbandSlotManager, MobileBroadbandCurrentSlotIndexChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<MobileBroadbandSlotManager,MobileBroadbandCurrentSlotIndexChangedEventArgs> CurrentSlotIndexChanged;
function onCurrentSlotIndexChanged(eventArgs) { /* Your code */ }
mobileBroadbandSlotManager.addEventListener("currentslotindexchanged", onCurrentSlotIndexChanged);
mobileBroadbandSlotManager.removeEventListener("currentslotindexchanged", onCurrentSlotIndexChanged);
- or -
mobileBroadbandSlotManager.oncurrentslotindexchanged = onCurrentSlotIndexChanged;
Public Custom Event CurrentSlotIndexChanged As TypedEventHandler(Of MobileBroadbandSlotManager, MobileBroadbandCurrentSlotIndexChangedEventArgs) 

Event Type

Windows requirements

App capabilities
cellularDeviceControl cellularDeviceIdentity

Applies to