Skip to main content

Is rotation lock enabled (device.is_orien_locked)

Declaration

locked = device.is_orien_locked()

Returns

  • locked
    Boolean. Whether screen rotation is locked

Example

if device.is_orien_locked() then
-- rotation is locked
else
-- rotation is not locked
end