Share via


BluetoothHidDevice.Disconnect(BluetoothDevice) Method

Definition

Disconnects from currently connected host.

[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

Parameters

Returns

true if the command is successfully sent; otherwise false.

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothHidDevice.disconnect(android.bluetooth.BluetoothDevice).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to