Device Module (device)Is screen locked (device.is_screen_locked)On this pageIs screen locked (device.is_screen_locked) Declaration locked = device.is_screen_locked() Returns locked Boolean. Whether the screen is locked Description Check whether the screen is currently locked Example if device.is_screen_locked() then -- screen is lockedelse -- screen is unlockedend