BluetoothLEDevice.ConnectionPhyChanged 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.
An event that's raised when the current PHY for the device changes. The PHY will update only after a connection to the device has been established.
// Register
event_token ConnectionPhyChanged(TypedEventHandler<BluetoothLEDevice, IInspectable const&> const& handler) const;
// Revoke with event_token
void ConnectionPhyChanged(event_token const* cookie) const;
// Revoke with event_revoker
BluetoothLEDevice::ConnectionPhyChanged_revoker ConnectionPhyChanged(auto_revoke_t, TypedEventHandler<BluetoothLEDevice, IInspectable const&> const& handler) const;
public event TypedEventHandler<BluetoothLEDevice,object> ConnectionPhyChanged;
function onConnectionPhyChanged(eventArgs) { /* Your code */ }
bluetoothLEDevice.addEventListener("connectionphychanged", onConnectionPhyChanged);
bluetoothLEDevice.removeEventListener("connectionphychanged", onConnectionPhyChanged);
- or -
bluetoothLEDevice.onconnectionphychanged = onConnectionPhyChanged;
Public Custom Event ConnectionPhyChanged As TypedEventHandler(Of BluetoothLEDevice, Object)
Event Type
TypedEventHandler<BluetoothLEDevice,IInspectable>
Windows requirements
Device family |
Windows 11 (introduced in 10.0.22000.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v14.0)
|
App capabilities |
bluetooth
|