BluetoothHidDevice.Callback.OnConnectionStateChanged Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Rappel appelé lorsque l’état de connexion avec l’hôte distant a été modifié.
[Android.Runtime.Register("onConnectionStateChanged", "(Landroid/bluetooth/BluetoothDevice;I)V", "GetOnConnectionStateChanged_Landroid_bluetooth_BluetoothDevice_IHandler", ApiSince=28)]
public virtual void OnConnectionStateChanged(Android.Bluetooth.BluetoothDevice? device, Android.Bluetooth.ProfileState state);
[<Android.Runtime.Register("onConnectionStateChanged", "(Landroid/bluetooth/BluetoothDevice;I)V", "GetOnConnectionStateChanged_Landroid_bluetooth_BluetoothDevice_IHandler", ApiSince=28)>]
abstract member OnConnectionStateChanged : Android.Bluetooth.BluetoothDevice * Android.Bluetooth.ProfileState -> unit
override this.OnConnectionStateChanged : Android.Bluetooth.BluetoothDevice * Android.Bluetooth.ProfileState -> unit
Paramètres
- device
- BluetoothDevice
BluetoothDevice objet représentant l’appareil hôte dont l’état de connexion a été modifié.
- state
- ProfileState
État de connexion tel que défini dans BluetoothProfile.
- Attributs
Remarques
Rappel appelé lorsque l’état de connexion avec l’hôte distant a été modifié. L’application peut supposer que virtual Cable est établie lorsqu’elle est appelée avec BluetoothProfile#STATE_CONNECTEDstate.
Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.