Aracılığıyla paylaş


UserManager.DisallowConfigBluetooth Field

Definition

Specifies if a user is disallowed from configuring bluetooth via Settings.

[Android.Runtime.Register("DISALLOW_CONFIG_BLUETOOTH")]
public const string DisallowConfigBluetooth;
[<Android.Runtime.Register("DISALLOW_CONFIG_BLUETOOTH")>]
val mutable DisallowConfigBluetooth : string

Field Value

Attributes

Remarks

Specifies if a user is disallowed from configuring bluetooth via Settings. This does <em>not</em> restrict the user from turning bluetooth on or off.

This restriction doesn't prevent the user from using bluetooth. For disallowing usage of bluetooth completely on the device, use #DISALLOW_BLUETOOTH.

A device owner and a profile owner can set this restriction, although the restriction has no effect in a managed profile. When it is set by a device owner, a profile owner on the primary user or by a profile owner of an organization-owned managed profile on the parent profile, it disallows the primary user from configuring bluetooth.

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_CONFIG_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

See also