UserManager.DisallowAddPrivateProfile Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies if a user is disallowed from creating a private profile.
[Android.Runtime.Register("DISALLOW_ADD_PRIVATE_PROFILE", ApiSince=35)]
public const string DisallowAddPrivateProfile;
[<Android.Runtime.Register("DISALLOW_ADD_PRIVATE_PROFILE", ApiSince=35)>]
val mutable DisallowAddPrivateProfile : string
Field Value
- Attributes
Remarks
Specifies if a user is disallowed from creating a private profile.
The default value for an unmanaged user is false
. For users with a device owner set, the default value is true
and the device owner currently cannot change it to false
. On organization-owned managed profile devices, the default value is false
but the profile owner can change it to true
via the parent profile to block creating of private profiles on the personal user.
Holders of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_PROFILES
can set this restriction using the DevicePolicyManager APIs mentioned below.
Key for user restrictions.
Type: Boolean
Java documentation for android.os.UserManager.DISALLOW_ADD_PRIVATE_PROFILE
.
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.