---
title: "lockCamera()"
canonical: "https://onesaitplatform.refined.site/space/DOCT/2220801274/lockCamera()"
format: markdown
---
> ℹ️ **Information**
> ℹ️ 
> ℹ️ Implementation version: beta 1.06

# Description

<span style="color: #091e42">Locks or releases the viewfinder camera movement.</span>

# Invocation

```javascript
lockCamera(
	status
)
```

# Input parameters

## status

Parameter that collects the camera's status. It is introduced as a text string, accepting one of these two possibilities:

1. **lock**: to lock the camera.
2. **unlock**: to unlock the camera.

# Use examples

Lock the camera:

```javascript
lockCamera(
	'lock'
)
```

Unlock the camera:

```javascript
lockCamera(
	'unlock'
)
```