Attempts to determine the screen orientation using the Orientation API.
name | type | description |
---|---|---|
width | number |
The width of the viewport. |
height | number |
The height of the viewport. |
The orientation.