BluetoothGatt.GetConnectionState(BluetoothDevice) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
此成员已弃用。
[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
远程蓝牙设备。
返回
不返回任何值。 每次调用都会 UnsupportedOperationException引发 。
实现
- 特性
例外
注解
此成员已弃用。 不支持 - 请与参数一BluetoothManager#getConnectedDevices(int)起使用BluetoothProfile#GATT
Java文档android.bluetooth.BluetoothGatt.getConnectionState(android.bluetooth.BluetoothDevice)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。