mui.isPortrait()

Returns true if the application is in portrait or upright position.

Quick example

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