ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Mobile specific functions / Phone functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
ScreenType (Function)
In french: TypeEcran
Returns the type of screen on which the application is running: 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
// Si l'application est sur un grand écran (tablette ou PC)
IF ScreenType() IN (stTablet, stComputer) 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: 09/21/2024

Send a report | Local help