DevicePolicyManager.GetCameraDisabled(ComponentName) Method
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.
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.
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.