Returns the size (in inches) of the diagonal of the screen on the device where the application is run.
- ScreenType is used to find out the type of device screen (phone, tablet, PC, etc.).
- In simulator mode, the size returned is not reliable.
// If the application is displayed on a large screen (tablet or PC)
IF ScreenSize() >= 7 THEN
Info("The screen is a tablet or a PC")
Size of the diagonal of the screen in inches. For example:
- Computer screen (diagonal greater than 13 inches).
- Watch screen (diagonal less than 2 inches).
- Tablet screen (diagonal included between 7 and 13 inches).
- Phone screen (diagonal included between 2 and 7 inches).