BluetoothDevice.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 of the device has changed.
// Register
event_token ConnectionStatusChanged(TypedEventHandler<BluetoothDevice, IInspectable const&> const& handler) const;
// Revoke with event_token
void ConnectionStatusChanged(event_token const* cookie) const;
// Revoke with event_revoker
BluetoothDevice::ConnectionStatusChanged_revoker ConnectionStatusChanged(auto_revoke_t, TypedEventHandler<BluetoothDevice, IInspectable const&> const& handler) const;
public event TypedEventHandler<BluetoothDevice,object> ConnectionStatusChanged;
function onConnectionStatusChanged(eventArgs) { /* Your code */ }
bluetoothDevice.addEventListener("connectionstatuschanged", onConnectionStatusChanged);
bluetoothDevice.removeEventListener("connectionstatuschanged", onConnectionStatusChanged);
- or -
bluetoothDevice.onconnectionstatuschanged = onConnectionStatusChanged;
Public Custom Event ConnectionStatusChanged As TypedEventHandler(Of BluetoothDevice, Object)
Event Type
TypedEventHandler<BluetoothDevice,IInspectable>
Windows requirements
App capabilities |
bluetooth
|