device.getScreenOrientation

getScreenOrientation() → {string}

Return a string representing the orientation of the device screen. It can be "any", "natural", "landscape", "portrait", "portrait-primary", "portrait-secondary", "landscape-primary", "landscape-secondary"

See: https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation
Parameters:
Type Description
Returns:
Type Description
string

the screen orientation

Powered by webdoc!