UserManager.DisallowCrossProfileCopyPaste Field

Definition

Specifies if the clipboard contents can be exported by pasting the data into other users or profiles.

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

Field Value

Attributes

Remarks

Specifies if the clipboard contents can be exported by pasting the data into other users or profiles. This restriction doesn't prevent import, such as someone pasting clipboard data from other profiles or users. The default value is false.

<strong>Note</strong>: Because it's possible to extract data from screenshots using optical character recognition (OCR), we strongly recommend combining this user restriction with DevicePolicyManager#setScreenCaptureDisabled(ComponentName, boolean).

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

Key for user restrictions.

Type: Boolean

Java documentation for android.os.UserManager.DISALLOW_CROSS_PROFILE_COPY_PASTE.

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