Поделиться через


IBluetoothProfile.GetConnectionState(BluetoothDevice) Метод

Определение

Получение текущего состояния подключения профиля

[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

Параметры

device
BluetoothDevice

Удаленное устройство Bluetooth.

Возвращаемое значение

Состояние подключения профиля. Один из #STATE_CONNECTED, #STATE_CONNECTING#STATE_DISCONNECTED#STATE_DISCONNECTING

Атрибуты

Комментарии

Документация по Java для android.bluetooth.BluetoothProfile.getConnectionState(android.bluetooth.BluetoothDevice).

Части этой страницы — это изменения на основе работы, созданной и общей проектом с открытым исходным кодом Android и используемой в соответствии с условиями, описанными в лицензии Creative Commons 2.5 Attribution.

Применяется к