limitOrientations

abstract fun limitOrientations(newOrientation: Int)

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

Parameters

newOrientation

A SCREEN_ORIENTATION_* value from ActivityInfo or SCREEN_ORIENTATION_UNSPECIFIED to load the setting

Sources

jvm source
Link copied to clipboard