Android.Bluetooth.BluetoothAdapter.Enable Method
Turn on the local Bluetooth adapter—do not use without explicit user action to turn on Bluetooth.

Syntax

[Android.Runtime.Register("enable", "()Z", "")]
[System.Obsolete("deprecated")]
public bool Enable ()

Returns

Documentation for this section has not yet been entered.

Remarks

Turn on the local Bluetooth adapter—do not use without explicit user action to turn on Bluetooth.

This powers on the underlying Bluetooth hardware, and starts all Bluetooth system services.

Bluetooth should never be enabled without direct user consent. If you want to turn on Bluetooth in order to create a wireless connection, you should use the BluetoothAdapter.ActionRequestEnable Intent, which will raise a dialog that requests user permission to turn on Bluetooth. The BluetoothAdapter.Enable method is provided only for applications that include a user interface for changing system settings, such as a "power manager" app.

This is an asynchronous call: it will return immediately, and clients should listen for BluetoothAdapter.ActionStateChanged to be notified of subsequent adapter state changes. If this call returns true, then the adapter state will immediately transition from BluetoothAdapter.STATE_OFF to BluetoothAdapter.STATE_TURNING_ON, and some time later transition to either BluetoothAdapter.STATE_OFF or BluetoothAdapter.STATE_ON. If this call returns false then there was an immediate problem that will prevent the adapter from being turned on - such as Airplane mode, or the adapter is already turned on.

Requires the NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#BLUETOOTH_ADMIN 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 5