Android.Hardware.Camera.Unlock Method
Unlocks the camera to allow another process to access it.

Syntax

[Android.Runtime.Register("unlock", "()V", "")]
public void Unlock ()

Exceptions

TypeReason
Java.Lang.RuntimeExceptionif the camera cannot be unlocked.

Remarks

Unlocks the camera to allow another process to access it. Normally, the camera is locked to the process with an active Camera object until Camera.Release is called. To allow rapid handoff between processes, you can call this method to release the camera temporarily for another process to use; once the other process is done you can call Camera.Reconnect to reclaim the camera.

This must be done before calling Android.Media.MediaRecorder.SetCamera(Camera). This cannot be called after recording starts.

If you are not recording video, you probably do not need this method.

[Android Documentation]

Requirements

Namespace: Android.Hardware
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5