Share via


BluetoothLEDevice.ConnectionPhyChanged Événement

Définition

Événement déclenché lorsque le PHY actuel pour l’appareil change. Le PHY ne sera mis à jour qu’une fois qu’une connexion à l’appareil a été établie.

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

Type d'événement

Configuration requise pour Windows

Famille d’appareils
Windows 11 (introduit dans 10.0.22000.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v14.0)
Fonctionnalités de l’application
bluetooth

S’applique à