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


BluetoothGatt.GetConnectionState(BluetoothDevice) Метод

Определение

Не поддерживается — используйте BluetoothManager#getConnectedDevices(int) в BluetoothProfile#GATT качестве аргумента

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

Параметры

device
BluetoothDevice

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

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

Реализации

Атрибуты

Исключения

Комментарии

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

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

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