Android.Bluetooth.BluetoothGattServer.CancelConnection Method
Disconnects an established connection, or cancels a connection attempt currently in progress.

Syntax

[Android.Runtime.Register("cancelConnection", "(Landroid/bluetooth/BluetoothDevice;)V", "")]
public void CancelConnection (BluetoothDevice device)

Parameters

device
Remote device

Remarks

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

Requires NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#BLUETOOTH permission.

[Android Documentation]

Requirements

Namespace: Android.Bluetooth
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18