isLandscape

open fun isLandscape(): Boolean

Checks whether the device is currently in landscape orientation.

Return

true if the device is in landscape orientation, false otherwise.