Dela via


UserManager.DisallowBluetooth Field

Definition

Specifies if bluetooth is disallowed on the device.

[Android.Runtime.Register("DISALLOW_BLUETOOTH", ApiSince=26)]
public const string DisallowBluetooth;
[<Android.Runtime.Register("DISALLOW_BLUETOOTH", ApiSince=26)>]
val mutable DisallowBluetooth : string

Field Value

Attributes

Remarks

Specifies if bluetooth is disallowed on the device. If bluetooth is disallowed on the device, bluetooth cannot be turned on or configured via Settings.

This restriction can only be set by a device owner, a profile owner on the primary user or a profile owner of an organization-owned managed profile on the parent profile. When it is set by a device owner, it applies globally - i.e., it disables bluetooth on the entire device and all users will be affected. When it is set by a profile owner on the primary user or by a profile owner of an organization-owned managed profile on the parent profile, it disables the primary user from using bluetooth and configuring bluetooth in Settings.

Holders of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_BLUETOOTH can set this restriction using the DevicePolicyManager APIs mentioned below.

The default value is false.

Key for user restrictions.

Type: Boolean

Java documentation for android.os.UserManager.DISALLOW_BLUETOOTH.

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