Android.App.Admin.DevicePolicyManager.SetCameraDisabled Method
Called by an application that is administering the device to disable all cameras on the device, for this user.

Syntax

[Android.Runtime.Register("setCameraDisabled", "(Landroid/content/ComponentName;Z)V", "GetSetCameraDisabled_Landroid_content_ComponentName_ZHandler")]
public virtual void SetCameraDisabled (Android.Content.ComponentName admin, bool disabled)

Parameters

admin
Which Android.App.Admin.DeviceAdminReceiver this request is associated with.
disabled
Whether or not the camera should be disabled.

Remarks

Called by an application that is administering the device to disable all cameras on the device, for this user. After setting this, no applications running as this user will be able to access any cameras on the device.

The calling device admin must have requested DeviceAdminInfo.UsesPolicyDisableCamera to be able to call this method; if it has not, a security exception will be thrown.

[Android Documentation]

Requirements

Namespace: Android.App.Admin
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 14