Find Device screen width and height


What is the method to get the device screen width and height (eg. phone, tablet etc) on which the app is running?

Use the screen1.width and screen1.height blocks in the Screen section of the palette on the left of the blocks editor.

In real world use, you may find you need to give these blocks a little bit of time to find the width and height, so call these in a clock timer with 100-250 milliseconds.