From 6574f465a864b51dd65d0161832c5da3669c97bb Mon Sep 17 00:00:00 2001 From: huiyueun <35286162+huiyueun@users.noreply.github.com> Date: Fri, 19 Feb 2021 15:42:08 +0900 Subject: [PATCH] [NUI] Add Tizen.NUI.Components.preload (#2663) - Add Tizen.NUI.Components.preload - Change PreLoad to Preload Signed-off-by: huiyu.eun Co-authored-by: Jiyun Yang --- src/Tizen.NUI.Components/Tizen.NUI.Components.csproj | 4 ++++ src/Tizen.NUI.Components/Tizen.NUI.Components.preload | 6 ++++++ src/Tizen.NUI/Tizen.NUI.preload | 2 +- src/Tizen.NUI/src/internal/Application/Application.cs | 2 +- src/Tizen.NUI/src/public/Application/NUIApplication.cs | 10 +++++----- 5 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 src/Tizen.NUI.Components/Tizen.NUI.Components.preload mode change 100644 => 100755 src/Tizen.NUI/src/public/Application/NUIApplication.cs diff --git a/src/Tizen.NUI.Components/Tizen.NUI.Components.csproj b/src/Tizen.NUI.Components/Tizen.NUI.Components.csproj index 7c42b25..d69aa98 100755 --- a/src/Tizen.NUI.Components/Tizen.NUI.Components.csproj +++ b/src/Tizen.NUI.Components/Tizen.NUI.Components.csproj @@ -6,6 +6,10 @@ + + + + diff --git a/src/Tizen.NUI.Components/Tizen.NUI.Components.preload b/src/Tizen.NUI.Components/Tizen.NUI.Components.preload new file mode 100644 index 0000000..7b4a7f5 --- /dev/null +++ b/src/Tizen.NUI.Components/Tizen.NUI.Components.preload @@ -0,0 +1,6 @@ +########################################### +## AssemblyName.dll TypeName ## +## AssemblyName.dll TypeName.Preload() ## +## The methods must not have parameters. ## +########################################### +Tizen.NUI.Components.dll Tizen.NUI.Components.Control.Preload() diff --git a/src/Tizen.NUI/Tizen.NUI.preload b/src/Tizen.NUI/Tizen.NUI.preload index 96a3b59..2ad244e 100644 --- a/src/Tizen.NUI/Tizen.NUI.preload +++ b/src/Tizen.NUI/Tizen.NUI.preload @@ -3,4 +3,4 @@ ## AssemblyName.dll TypeName.Preload() ## ## The methods must not have parameters. ## ########################################### -Tizen.NUI.dll Tizen.NUI.NUIApplication.PreLoad() +Tizen.NUI.dll Tizen.NUI.NUIApplication.Preload() diff --git a/src/Tizen.NUI/src/internal/Application/Application.cs b/src/Tizen.NUI/src/internal/Application/Application.cs index c1f958e..8fa349c 100755 --- a/src/Tizen.NUI/src/internal/Application/Application.cs +++ b/src/Tizen.NUI/src/internal/Application/Application.cs @@ -648,7 +648,7 @@ namespace Tizen.NUI DisposeQueue.Instance.Initialize(); // Notify that the window is displayed to the app core. - if (NUIApplication.IsPreLoad) + if (NUIApplication.IsPreload) { Window.Instance.Show(); } diff --git a/src/Tizen.NUI/src/public/Application/NUIApplication.cs b/src/Tizen.NUI/src/public/Application/NUIApplication.cs old mode 100644 new mode 100755 index 6723941..90e3aab --- a/src/Tizen.NUI/src/public/Application/NUIApplication.cs +++ b/src/Tizen.NUI/src/public/Application/NUIApplication.cs @@ -45,7 +45,7 @@ namespace Tizen.NUI private string appId = null; internal static NUIApplication me; - private static bool isPreLoad = false; + private static bool isPreload = false; // TODO Enable this after tizen-theme-manager is released. // private readonly ThemeLoader themeLoader = new ThemeLoader(); @@ -425,10 +425,10 @@ namespace Tizen.NUI /// This is used to improve application launch performance. /// [EditorBrowsable(EditorBrowsableState.Never)] - static public void PreLoad() + static public void Preload() { Interop.Application.PreInitialize(); - isPreLoad = true; + isPreload = true; } /// @@ -482,11 +482,11 @@ namespace Tizen.NUI /// /// Check if it is loaded as dotnet-loader-nui. /// - static internal bool IsPreLoad + static internal bool IsPreload { get { - return isPreLoad; + return isPreload; } } } -- 2.7.4