BluetoothHidDevice.Disconnect(BluetoothDevice) 方法

定義

中斷與目前連線主機的連線。

[Android.Runtime.Register("disconnect", "(Landroid/bluetooth/BluetoothDevice;)Z", "", ApiSince=28)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool Disconnect (Android.Bluetooth.BluetoothDevice? device);
[<Android.Runtime.Register("disconnect", "(Landroid/bluetooth/BluetoothDevice;)Z", "", ApiSince=28)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.Disconnect : Android.Bluetooth.BluetoothDevice -> bool

參數

傳回

如果成功傳送命令,則為 true;否則為 false。

屬性

備註

android.bluetooth.BluetoothHidDevice.disconnect(android.bluetooth.BluetoothDevice)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於