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.

1 Like

3 posts were split to a new topic: How can we make a clock timer