Radio.StateChanged 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.
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
TypedEventHandler<Radio,IInspectable>