[NUI] Add NoOrientationPreference (#1221)
authorWonsik Jung <sidein@samsung.com>
Thu, 19 Dec 2019 09:18:50 +0000 (18:18 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Thu, 19 Dec 2019 09:18:50 +0000 (18:18 +0900)
Add NoOrientationPreference to WindowOrientation enum.
It is used to unset the preferred orientation with SetPreferredOrientation.

src/Tizen.NUI/src/public/Window.cs

index cd82c01..cb182bc 100755 (executable)
@@ -102,7 +102,14 @@ namespace Tizen.NUI
             /// Landscape inverse orientation.
             /// </summary>
             /// <since_tizen> 3 </since_tizen>
-            LandscapeInverse = 270
+            LandscapeInverse = 270,
+            /// <summary>
+            /// No orientation. It is for the preferred orientation
+            /// Especially, NoOrientationPreference only has the effect for the preferred orientation.
+            /// It is used to unset the preferred orientation with SetPreferredOrientation.
+            /// </summary>
+            [EditorBrowsable(EditorBrowsableState.Never)]
+            NoOrientationPreference = -1
         }
 
         /// <summary>