Share via


DevicePolicyManager.GetScreenCaptureDisabled(ComponentName) Method

Definition

Determine whether or not screen capture has been disabled by the calling admin, if specified, or all admins.

[Android.Runtime.Register("getScreenCaptureDisabled", "(Landroid/content/ComponentName;)Z", "GetGetScreenCaptureDisabled_Landroid_content_ComponentName_Handler")]
public virtual bool GetScreenCaptureDisabled (Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getScreenCaptureDisabled", "(Landroid/content/ComponentName;)Z", "GetGetScreenCaptureDisabled_Landroid_content_ComponentName_Handler")>]
abstract member GetScreenCaptureDisabled : Android.Content.ComponentName -> bool
override this.GetScreenCaptureDisabled : Android.Content.ComponentName -> bool

Parameters

admin
ComponentName

The name of the admin component to check, or null to check whether any admins have disabled screen capture.

Returns

Attributes

Remarks

Determine whether or not screen capture has been disabled by the calling admin, if specified, or all admins.

This method can be called on the DevicePolicyManager instance, returned by #getParentProfileInstance(ComponentName), where the caller must be the profile owner of an organization-owned managed profile (the calling admin must be specified).

Java documentation for android.app.admin.DevicePolicyManager.getScreenCaptureDisabled(android.content.ComponentName).

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