BluetoothGattServer.CancelConnection(BluetoothDevice) Method

Definition

Disconnects an established connection, or cancels a connection attempt currently in progress.

[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

Parameters

device
BluetoothDevice

Remote device

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothGattServer.cancelConnection(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