Langue

BluetoothGatt.GetConnectionState(BluetoothDevice) Méthode

Définition

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

Java documentation pour android.bluetooth.BluetoothGatt.getConnectionState(android.bluetooth.BluetoothDevice).

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.

S’applique à