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

Syntax

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

Returns

Documentation for this section has not yet been entered.

Remarks

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

This gracefully shuts down all Bluetooth connections, stops Bluetooth system services, and powers down the underlying Bluetooth hardware.

Bluetooth should never be disabled without direct user consent. The BluetoothAdapter.Disable 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_ON to BluetoothAdapter.STATE_TURNING_OFF, 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 off - such as the adapter already being turned off.

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