共用方式為


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 屬性授權中所述的詞彙使用。

適用於