PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
SysScreenOrientation (Function)
In french: SysOrientationEcran
Used to:
  • get the screen orientation of the device (Android, iOS or Universal Windows phone).
  • set the screen orientation of the device (Android phone).
Example
// Fill the "LIST_Orientations" control with the possibles orientations
ListAdd(LIST_Orientations, SysListScreenOrientation())
 
// Select the current orientation of the screen in the List Box control
LIST_Orientations = SysScreenOrientation()
Syntax

Getting the screen orientation Hide the details

<Result> = SysScreenOrientation()
<Result>: Character String constant
Value of the current screen orientation:
Orient0The screen is oriented in the default direction.
Orient90The screen is turned around by 90° clockwise.
Orient180The screen is turned around by 180°.
Orient270The screen is turned around by 90° counterclockwise (or by 270° clockwise).
Remarks
  • The screen orientation cannot be changed in all types of mobile devices. When this feature is not available, SysScreenOrientation always returns Orient0.
Business / UI classification: Business Logic
Component: wd280android.aar
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment