How to detect if device Auto Orientation Mode is activated ?
Posted: Mon Mar 12, 2018 10:35 pm
Hi,
On an android device I´m using this script that allows "rotating" the stack without any user action.
But, since user might want to keep it in Landscape mode - all the time - I does one detect the device mode settings 
On an android device I´m using this script that allows "rotating" the stack without any user action.
Code: Select all
on preOpenStack
-- Condition to check whether the environment is mobile
if the environment is "mobile" then
--Portrait , Portrait Upside Down , Landscape Left, Landscape Right are the 4 Parameters to be passed in the function iphoneSetAllowedOrientations
put "portrait,portrait upside down,landscape left,landscape right" into theallowed
-- Function Call
mobileSetAllowedOrientations theallowed
end if
end preOpenStack
