Freigeben über


UserManager.DisallowShareIntoManagedProfile Field

Definition

Specifies whether the user can share file / picture / data from the primary user into the managed profile, either by sending them from the primary side, or by picking up data within an app in the managed profile.

[Android.Runtime.Register("DISALLOW_SHARE_INTO_MANAGED_PROFILE", ApiSince=28)]
public const string DisallowShareIntoManagedProfile;
[<Android.Runtime.Register("DISALLOW_SHARE_INTO_MANAGED_PROFILE", ApiSince=28)>]
val mutable DisallowShareIntoManagedProfile : string

Field Value

Attributes

Remarks

Specifies whether the user can share file / picture / data from the primary user into the managed profile, either by sending them from the primary side, or by picking up data within an app in the managed profile.

When a managed profile is created, the system allows the user to send data from the primary side to the profile by setting up certain default cross profile intent filters. If this is undesired, this restriction can be set to disallow it. Note that this restriction will not block any sharing allowed by explicit DevicePolicyManager#addCrossProfileIntentFilter calls by the profile owner.

This restriction is only meaningful when set by profile owner. When it is set by device owner, it does not have any effect.

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

The default value is false.

Java documentation for android.os.UserManager.DISALLOW_SHARE_INTO_MANAGED_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.

Applies to