Partager via


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

Documentation Java 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 le projet Android Open Source et utilisés en fonction des termes décrits dans la licence d’attribution Creative Commons 2.5.

S’applique à