Freigeben über


BluetoothHealth.GetConnectionState(BluetoothDevice) Methode

Definition

Ruft den aktuellen Verbindungsstatus des Profils ab.

[Android.Runtime.Register("getConnectionState", "(Landroid/bluetooth/BluetoothDevice;)I", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public Android.Bluetooth.ProfileState GetConnectionState (Android.Bluetooth.BluetoothDevice? device);
[<Android.Runtime.Register("getConnectionState", "(Landroid/bluetooth/BluetoothDevice;)I", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
abstract member GetConnectionState : Android.Bluetooth.BluetoothDevice -> Android.Bluetooth.ProfileState
override this.GetConnectionState : Android.Bluetooth.BluetoothDevice -> Android.Bluetooth.ProfileState

Parameter

device
BluetoothDevice

Remote-Bluetooth-Gerät.

Gibt zurück

Status der Profilverbindung. Einer von #STATE_CONNECTED, #STATE_CONNECTING, , #STATE_DISCONNECTED, #STATE_DISCONNECTING

Implementiert

Attribute

Hinweise

Java-Dokumentation für android.bluetooth.BluetoothHealth.getConnectionState(android.bluetooth.BluetoothDevice).

Teile dieser Seite sind Änderungen, die auf Arbeiten basieren, die vom Android Open Source Project erstellt und freigegeben wurden und gemäß den In Attribution License beschriebenen Begriffen verwendet werden.

Gilt für: