ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Mobile specific functions / Phone functions
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
ScreenType (Function)
In french: TypeEcran
Returns the type of screen on which the application is run: phone, tablet, computer or watch.
Remarks:
  • Android To find out the exact size of the diagonal of the screen, use ScreenSize.
  • In simulator mode, the type of screen corresponds to a computer screen.
Example
// If the application is displayed on a large screen (tablet or PC)
IF ScreenType() IN (teTablet, teComputer) THEN
...
END
Syntax
<Result> = ScreenType()
<Result>: Integer constant
Type of screen:
teComputerComputer screen (diagonal greater than 13 inches).
tePhonePhone screen (diagonal included between 2 and 7 inches).
teTabletTablet screen (diagonal included between 7 and 13 inches).
teWatchWatch screen (diagonal less than 2 inches).
Component: wd300android.aar
Minimum version required
  • Version 22
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help