BluetoothGattServer.CancelConnection(BluetoothDevice) 方法

定义

断开已建立的连接,或取消当前正在进行的连接尝试。

[Android.Runtime.Register("cancelConnection", "(Landroid/bluetooth/BluetoothDevice;)V", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public void CancelConnection (Android.Bluetooth.BluetoothDevice? device);
[<Android.Runtime.Register("cancelConnection", "(Landroid/bluetooth/BluetoothDevice;)V", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.CancelConnection : Android.Bluetooth.BluetoothDevice -> unit

参数

device
BluetoothDevice

远程设备

属性

注解

适用于 . 的 android.bluetooth.BluetoothGattServer.cancelConnection(android.bluetooth.BluetoothDevice)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于