[NUI] Add ShowInsideFridge function for Accessibility
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Wed, 22 Feb 2023 13:42:58 +0000 (22:42 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 22 Feb 2023 14:07:18 +0000 (23:07 +0900)
- ShowInsideFridge() can tell which app is at the top of the layer.

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
src/Tizen.NUI/src/internal/Interop/Interop.AccessibilityManager.cs
src/Tizen.NUI/src/public/Accessibility/AccessibilityManager.cs

index 5187f73..152ff64 100755 (executable)
@@ -98,6 +98,9 @@ namespace Tizen.NUI
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_IsEnabled")]
             public static extern bool IsEnabled(global::System.Runtime.InteropServices.HandleRef jarg1);
 
+            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ShowInsideFridge")]
+            public static extern void ShowInsideFridge(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2);
+
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_FocusChangedSignal")]
             public static extern global::System.IntPtr AccessibilityManager_FocusChangedSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
 
index 23e19d3..4031d83 100755 (executable)
@@ -883,6 +883,17 @@ namespace Tizen.NUI.Accessibility
             return ret;
         }
 
+        /// <summary>
+        /// Checks whether Inside Fridge is shown or not.
+        /// </summary>
+        /// <param name="isShown"> True if Inside Fridge is shown.</param>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public void ShowInsideFridge(bool isShown)
+        {
+            Interop.AccessibilityManager.ShowInsideFridge(swigCPtr, isShown);
+            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+        }
+
         /// Queries whether EnableAccessibility() is called and Accessibility is enabled forcibly or not.
         /// This API is only used for internal checks.
         internal bool IsForcedEnable()