From: Seungho Baek Date: Tue, 20 May 2025 08:19:28 +0000 (+0900) Subject: [NUI] Bind EnablePreResumeFrame X-Git-Tag: submit/tizen_9.0/20250608.020830~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ee8b761d72b9ef71e9acac6bfeb93e31f4fd16b4;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Bind EnablePreResumeFrame Signed-off-by: Seungho Baek --- 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. ///