[NUI] Bind EnablePreResumeFrame
authorSeungho Baek <sbsh.baek@samsung.com>
Tue, 20 May 2025 08:19:28 +0000 (17:19 +0900)
committerEunki Hong <h.pichulia@gmail.com>
Sat, 7 Jun 2025 15:23:47 +0000 (00:23 +0900)
Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
src/Tizen.NUI/src/internal/Interop/Interop.Application.cs
src/Tizen.NUI/src/public/Application/NUIApplication.cs

index a52f199384fadcd699aad6bde70691477a17b7d0..89639290f301bdd4f5f6706ed313fc1ce57a12a4 100755 (executable)
@@ -51,6 +51,9 @@ namespace Tizen.NUI
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_Application")]
             public static extern void DeleteApplication(global::System.Runtime.InteropServices.HandleRef jarg1);
 
+            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Application_EnableSkipPreResumeFrames")]
+            public static extern void ApplicationEnableSkipPreResumeFrames(global::System.Runtime.InteropServices.HandleRef application);
+
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Application_Lower")]
             public static extern void Lower(global::System.Runtime.InteropServices.HandleRef jarg1);
 
index b63fab53542f221cef85cea15d168f8e11af711c..615dfd723c7a8207e32b8d90221889e1ed6b6318 100755 (executable)
@@ -494,6 +494,20 @@ namespace Tizen.NUI
             }
         }
 
+        /// <summary>
+        /// Enables to skip frames those are requested previous resume/pause.
+        /// </summary>
+        // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public void EnableSkipPreResumeFrames()
+        {
+            if (ApplicationHandle != null && ApplicationHandle.SwigCPtr.Handle != IntPtr.Zero)
+            {
+                Interop.Application.ApplicationEnableSkipPreResumeFrames(ApplicationHandle.SwigCPtr);
+                if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+            }
+        }
+
         /// <summary>
         /// Registers the specified assembly to XAML, allowing types within the assembly to be used in XAML files.
         /// </summary>