Skip to main content

Set auto-lock minutes (device.set_autolock_time)

Declaration

device.set_autolock_time(minutes)

Parameters

  • minutes
    Integer. Set device auto-lock minutes. 0 means never auto-lock

Description

Only intervals offered by the system are accepted (the options shown under Settings → Display & Brightness → Auto-Lock)

Example

device.set_autolock_time(0)