Android Guides | Samples

Android.Views.WindowManagerLayoutParams.ScreenOrientation Property

Specific orientation value for a window.


public ScreenOrientation ScreenOrientation { get; set; }


Specific orientation value for a window. May be any of the same values allowed for ActivityInfo.ScreenOrientation. If not set, a default value of Android.Content.PM.ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED will be used.

[Android Documentation]


Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions:
Since: Added in API level 3