语言

BluetoothGattServer.GetConnectionState(BluetoothDevice) 方法

定义

[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

远程蓝牙设备。

返回

此方法不返回值。

实现

特性

例外

调用此方法时始终引发。

注解

不支持。 改用 GetConnectionState(BluetoothDevice, ProfileType)。

Java文档android.bluetooth.BluetoothGattServer.getConnectionState(android.bluetooth.BluetoothDevice)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于