BluetoothGatt.GetConnectionState(BluetoothDevice) 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.
Ce membre est déconseillé.
[Android.Runtime.Register("getConnectionState", "(Landroid/bluetooth/BluetoothDevice;)I", "")]
public Android.Bluetooth.ProfileState GetConnectionState(Android.Bluetooth.BluetoothDevice? device);
[<Android.Runtime.Register("getConnectionState", "(Landroid/bluetooth/BluetoothDevice;)I", "")>]
abstract member GetConnectionState : Android.Bluetooth.BluetoothDevice -> Android.Bluetooth.ProfileState
override this.GetConnectionState : Android.Bluetooth.BluetoothDevice -> Android.Bluetooth.ProfileState
Paramètres
- device
- BluetoothDevice
Appareil Bluetooth distant.
Retours
État de la connexion de profil. L’une des valeurs STATE_CONNECTED, STATE_CONNECTING, STATE_DISCONNECTED, STATE_DISCONNECTING est l’une des suivantes : STATE_DISCONNECTED ; STATE_CONNECTING ; STATE_CONNECTED ; STATE_DISCONNECTING
Implémente
- Attributs
Exceptions
Remarques
Ce membre est déconseillé. Non pris en charge : utilisez-le BluetoothManager#getConnectedDevices(int) en BluetoothProfile#GATT tant qu’argument
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.