How to get device screen/monitor size?

Hello!

What is a way to get the device screen (phone) or monitor (PC) size?

My main platforms are Windows and Android.

If there is a nice way to get this? If not, I’ll accept different solutions for each platform.

Thanks!

You may find it helpful or interesting to see how OpenFL handles resolution internally for different targets: openfl/Stage.hx at develop · openfl/openfl · GitHub