Android.Bluetooth.BluetoothAdapter.ActionRequestEnable Field
Activity Action: Show a system activity that allows the user to turn on Bluetooth.

Syntax

[Android.Runtime.Register("ACTION_REQUEST_ENABLE")]
public const string ActionRequestEnable

Remarks

Activity Action: Show a system activity that allows the user to turn on Bluetooth.

This system activity will return once Bluetooth has completed turning on, or the user has decided not to turn Bluetooth on.

Notification of the result of this activity is posted using the Android.App.Activity.OnActivityResult(int, Android.App.Result, Android.App.Result) callback. The resultCode will be Android.App.Activity.RESULT_OK if Bluetooth has been turned on or Android.App.Activity.RESULT_CANCELED if the user has rejected the request or an error has occurred.

Applications can also listen for BluetoothAdapter.ActionStateChanged for global notification whenever Bluetooth is turned on or off.

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

[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