Aracılığıyla paylaş


UserManager.DisallowBluetoothSharing Field

Definition

Specifies if outgoing bluetooth sharing is disallowed.

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

Field Value

Attributes

Remarks

Specifies if outgoing bluetooth sharing is disallowed.

A device owner and a profile owner can set this restriction. When it is set by a device owner, it applies globally. 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 any outgoing bluetooth sharing.

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

Default is true for managed profiles and false otherwise.

When a device upgrades to android.os.Build.VERSION_CODES#O, the system sets it for all existing managed profiles.

Key for user restrictions.

Type: Boolean

Java documentation for android.os.UserManager.DISALLOW_BLUETOOTH_SHARING.

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