mui.isLandscape()

Returns true if the device is in a horizontal position.

Quick example

if (mui.isLandscape()) {
Console.log('is landscape!');
} else {
Console.log('is portrait!');
}