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

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

index a103a1ef0da3b99863d8fe6f8d3413b3e59c24a2..e869a4bd8232ce657c8a9e04349e35ac792b87b0 100755 (executable)
@@ -100,7 +100,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>