allowPortrait

abstract fun allowPortrait(allow: Boolean)

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

Parameters

allow

true: allow all orientations (follows sensor as limited by OS settings) false: allow only landscape orientations (both if supported, otherwise default landscape only)

Sources

jvm source
Link copied to clipboard