Freigeben über


DevicePolicyManager.GetCameraDisabled(ComponentName) Method

Definition

Determine whether or not the device's cameras have been disabled for this user, either by the calling admin, if specified, or all admins.

[Android.Runtime.Register("getCameraDisabled", "(Landroid/content/ComponentName;)Z", "GetGetCameraDisabled_Landroid_content_ComponentName_Handler")]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_CAMERA")]
public virtual bool GetCameraDisabled (Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getCameraDisabled", "(Landroid/content/ComponentName;)Z", "GetGetCameraDisabled_Landroid_content_ComponentName_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_CAMERA")>]
abstract member GetCameraDisabled : Android.Content.ComponentName -> bool
override this.GetCameraDisabled : Android.Content.ComponentName -> bool

Parameters

admin
ComponentName

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

Returns

Attributes

Remarks

Determine whether or not the device's cameras have been disabled for this user, either 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.

Java documentation for android.app.admin.DevicePolicyManager.getCameraDisabled(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