Radio.StateChanged Event

Definition

Event raised by a state change in the radio represented by this object. When a USB Bluetooth radio is removed or otherwise goes offline, no state change is reported.

// Register
event_token StateChanged(TypedEventHandler<Radio, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
Radio::StateChanged_revoker StateChanged(auto_revoke_t, TypedEventHandler<Radio, IInspectable const&> const& handler) const;
public event TypedEventHandler<Radio,object> StateChanged;
function onStateChanged(eventArgs) { /* Your code */ }
radio.addEventListener("statechanged", onStateChanged);
radio.removeEventListener("statechanged", onStateChanged);
- or -
radio.onstatechanged = onStateChanged;
Public Custom Event StateChanged As TypedEventHandler(Of Radio, Object) 

Event Type

Applies to