Sprache

BluetoothCsipSetCoordinator.GetConnectionState(BluetoothDevice) Methode

Definition

Rufen Sie den aktuellen Verbindungsstatus des Profils für Apps ab, die auf Build.VERSION_CODES abzielen. S oder höher erfordert dies die Manifest.permission.BLUETOOTH_CONNECT Berechtigung, die mit android.app.Activity.requestPermissions(String[],int) gewonnen werden kann.

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

Parameter

Gibt zurück

Der Wert ist einer der folgenden: BluetoothProfile.STATE_DISCONNECTED; BluetoothProfile.STATE_CONNECTING; BluetoothProfile.STATE_CONNECTED; BluetoothProfile.STATE_DISCONNECTING

Implementiert

Attribute

Hinweise

Rufen Sie den aktuellen Verbindungsstatus des Profils für Apps ab, die auf Build.VERSION_CODES abzielen. S oder höher erfordert dies die Manifest.permission.BLUETOOTH_CONNECT Berechtigung, die mit android.app.Activity.requestPermissions(String[],int) gewonnen werden kann. Erfordert Manifest.permission.BLUETOOTH_CONNECT und Manifest.permission.BLUETOOTH_PRIVILEGED

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

Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die von der Android Open Source Project erstellt und gemeinsam verwendet und gemäß den in der 2.5 Attribution License beschriebenen Begriffen verwendet werden.

Gilt für: