Class: UnderOs::Screen

Inherits:
Object
  • Object
show all
Defined in:
lib/under_os/screen.rb

Class Method Summary collapse

Class Method Details

.sizeObject



2
3
4
5
6
7
8
# File 'lib/under_os/screen.rb', line 2

def self.size
  # TODO make it handle the screen orientation
  UnderOs::Point.new({
    x: UIScreen.mainScreen.bounds.size.width,
    y: UIScreen.mainScreen.bounds.size.height
  })
end