Langue

IBluetoothProfile.GetConnectionState(BluetoothDevice) Méthode

Définition

Obtenir l’état de connexion actuel du profil

[Android.Runtime.Register("getConnectionState", "(Landroid/bluetooth/BluetoothDevice;)I", "GetGetConnectionState_Landroid_bluetooth_BluetoothDevice_Handler:Android.Bluetooth.IBluetoothProfileInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Bluetooth.ProfileState GetConnectionState(Android.Bluetooth.BluetoothDevice? device);
[<Android.Runtime.Register("getConnectionState", "(Landroid/bluetooth/BluetoothDevice;)I", "GetGetConnectionState_Landroid_bluetooth_BluetoothDevice_Handler:Android.Bluetooth.IBluetoothProfileInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetConnectionState : Android.Bluetooth.BluetoothDevice -> Android.Bluetooth.ProfileState

Paramètres

device
BluetoothDevice

Appareil Bluetooth distant.

Retours

État de la connexion de profil. Un des #STATE_CONNECTED, , #STATE_CONNECTING, #STATE_DISCONNECTED, #STATE_DISCONNECTING

Attributs

Remarques

Obtenir l’état de connexion actuel du profil

Java documentation pour android.bluetooth.BluetoothProfile.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 à