BluetoothLEDevice.ConnectionStatusChanged 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.
Occurs when the connection status for the device has changed.
// Register
event_token ConnectionStatusChanged(TypedEventHandler<BluetoothLEDevice, IInspectable const&> const& handler) const;
// Revoke with event_token
void ConnectionStatusChanged(event_token const* cookie) const;
// Revoke with event_revoker
BluetoothLEDevice::ConnectionStatusChanged_revoker ConnectionStatusChanged(auto_revoke_t, TypedEventHandler<BluetoothLEDevice, IInspectable const&> const& handler) const;
public event TypedEventHandler<BluetoothLEDevice,object> ConnectionStatusChanged;
function onConnectionStatusChanged(eventArgs) { /* Your code */ }
bluetoothLEDevice.addEventListener("connectionstatuschanged", onConnectionStatusChanged);
bluetoothLEDevice.removeEventListener("connectionstatuschanged", onConnectionStatusChanged);
- or -
bluetoothLEDevice.onconnectionstatuschanged = onConnectionStatusChanged;
Public Custom Event ConnectionStatusChanged As TypedEventHandler(Of BluetoothLEDevice, Object)
Event Type
TypedEventHandler<BluetoothLEDevice,IInspectable>
Windows requirements
App capabilities |
bluetooth
|
Remarks
In your handler for this event, to get the connection status query the BluetoothLEDevice.ConnectionStatus property on the BluetoothLEDevice that's passed to your handler.