From ee8b761d72b9ef71e9acac6bfeb93e31f4fd16b4 Mon Sep 17 00:00:00 2001 From: Seungho Baek Date: Tue, 20 May 2025 17:19:28 +0900 Subject: [PATCH] [NUI] Bind EnablePreResumeFrame Signed-off-by: Seungho Baek --- .../src/internal/Interop/Interop.Application.cs | 3 +++ .../src/public/Application/NUIApplication.cs | 14 ++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.Application.cs b/src/Tizen.NUI/src/internal/Interop/Interop.Application.cs index a52f19938..89639290f 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.Application.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.Application.cs @@ -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); diff --git a/src/Tizen.NUI/src/public/Application/NUIApplication.cs b/src/Tizen.NUI/src/public/Application/NUIApplication.cs index b63fab535..615dfd723 100755 --- a/src/Tizen.NUI/src/public/Application/NUIApplication.cs +++ b/src/Tizen.NUI/src/public/Application/NUIApplication.cs @@ -494,6 +494,20 @@ namespace Tizen.NUI } } + /// + /// Enables to skip frames those are requested previous resume/pause. + /// + // 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(); + } + } + /// /// Registers the specified assembly to XAML, allowing types within the assembly to be used in XAML files. /// -- 2.34.1