LimitOrientationsHelper

interface LimitOrientationsHelper

Interface to support managing orientations

You can turn a mobile device on its side or upside down, and a mobile OS may or may not allow the position changes to automatically result in App orientation changes. This is about limiting that feature.

Functions

allowPortrait
Link copied to clipboard
abstract fun allowPortrait(allow: Boolean)

Pass a Boolean setting as used in allowAndroidPortrait to the OS.

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
limitOrientations
Link copied to clipboard
abstract fun limitOrientations(newOrientation: Int)

Set a specific requested orientation or pull the setting from disk and act accordingly

toString
Link copied to clipboard
open fun toString(): String

Sources

jvm source
Link copied to clipboard