Поделиться через


BluetoothLEDevice.ConnectionPhyChanged Событие

Определение

Событие, возникающее при изменении текущего PHY для устройства. PHY обновляется только после установки подключения к устройству.

// 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) 

Тип события

Требования к Windows

Семейство устройств
Windows 11 (появилось в 10.0.22000.0)
API contract
Windows.Foundation.UniversalApiContract (появилось в v14.0)
Возможности приложения
bluetooth

Применяется к