---
name: "remoteEnabled"
mode: "api"
versionRequirements:
  - { name: "@ray-js/lock-sdk", version: "1.0.0" }
title: "remoteEnabled - Set remote lock/unlock function switch."
summary: "Set remote lock/unlock function switch."
---

## remoteEnabled

> [VERSION] @ray-js/lock-sdk >= 1.0.0

### Description

Enable or disable the remote lock/unlock feature

### Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `state` | `boolean` | Yes | Target on/off state |

### Return Value

Type: `Promise<void>`

None (resolves on success)

### Examples

#### Example

```ts
import { remoteEnabled } from '@ray-js/lock-sdk';
await remoteEnabled(true);
```
