Android Guides | Samples

Android.Views.WindowManagerLayoutParams.ScreenOrientation Property

Specific orientation value for a window.

Syntax

[Android.Runtime.Register("screenOrientation")]
public ScreenOrientation ScreenOrientation { get; set; }

Remarks

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]

Requirements

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