語言

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

遠端裝置

屬性

備註

斷開已建立的連線,或取消正在進行的連線嘗試。

Java 文件 android.bluetooth.BluetoothGattServer.cancelConnection(android.bluetooth.BluetoothDevice)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於