Tuya MiniApp
  • Introduction
  • Development
  • Solution
GuideFrameworkDevtoolsComponentsAPIChangelogFAQ
  • Device log
  • Group
  • Measurement
  • Weather
  • Outdoors
      • Check if Remote Lock Control is Available
      • Unlock
      • Lock
      • Get Current Remote Lock Control Permission
      • Get Remote Lock Control Permission List
      • Enable or Disable Remote Lock/Unlock Function
      • Get Remote Lock/Unlock Function Status
      • Update Remote Lock Control Permission
      • Approve Remote Unlock Request
      • Reject Remote Unlock Request
      • Get Voice Unlock Password Status
      • Disable Voice Unlock Password
      • Update Voice Unlock Password

remoteEnabled(state: boolean)

Requires:
@ray-js/lock-sdk≥1.0.0

Description

Enable or disable the remote lock/unlock feature

Parameters

ParameterTypeRequiredDescription
statebooleanYesTarget on/off state

Return Value

Type: Promise<void>
None (resolves on success)

Examples

import { remoteEnabled } from '@ray-js/lock-sdk';
await remoteEnabled(true);
Previous pageGet Remote Lock Control Permission ListNext pageGet Remote Lock/Unlock Function Status
On this page