SmsDevice2.DeviceStatusChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets an event handler to be called when the status of the SMS device changes.
// Register
event_token DeviceStatusChanged(TypedEventHandler<SmsDevice2, IInspectable const&> const& handler) const;
// Revoke with event_token
void DeviceStatusChanged(event_token const* cookie) const;
// Revoke with event_revoker
SmsDevice2::DeviceStatusChanged_revoker DeviceStatusChanged(auto_revoke_t, TypedEventHandler<SmsDevice2, IInspectable const&> const& handler) const;
public event TypedEventHandler<SmsDevice2,object> DeviceStatusChanged;
function onDeviceStatusChanged(eventArgs) { /* Your code */ }
smsDevice2.addEventListener("devicestatuschanged", onDeviceStatusChanged);
smsDevice2.removeEventListener("devicestatuschanged", onDeviceStatusChanged);
- or -
smsDevice2.ondevicestatuschanged = onDeviceStatusChanged;
Public Custom Event DeviceStatusChanged As TypedEventHandler(Of SmsDevice2, Object)
Event Type
TypedEventHandler<SmsDevice2,IInspectable>
Windows requirements
App capabilities |
cellularMessaging
sms
|