Android.App.Activity.RequestedOrientation Property
Return the current requested orientation of the activity.

Syntax

[get: Android.Runtime.Register("getRequestedOrientation", "()I", "GetGetRequestedOrientationHandler")]
[set: Android.Runtime.Register("setRequestedOrientation", "(I)V", "GetSetRequestedOrientation_IHandler")]
public virtual Android.Content.PM.ScreenOrientation RequestedOrientation { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Get method documentation [Android Documentation]

Return the current requested orientation of the activity. This will either be the orientation requested in its component's manifest, or the last requested orientation given to Activity.RequestedOrientation.

Set method documentation [Android Documentation]

Change the desired orientation of this activity. If the activity is currently in the foreground or otherwise impacting the screen orientation, the screen will immediately be changed (possibly causing the activity to be restarted). Otherwise, this will be used the next time the activity is visible.

Requirements

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