[NUI] Add Tizen.NUI.Components.preload (#2663)
authorhuiyueun <35286162+huiyueun@users.noreply.github.com>
Fri, 19 Feb 2021 06:42:08 +0000 (15:42 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Thu, 25 Feb 2021 08:24:58 +0000 (17:24 +0900)
- Add Tizen.NUI.Components.preload
- Change PreLoad to Preload

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
Co-authored-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI.Components/Tizen.NUI.Components.csproj
src/Tizen.NUI.Components/Tizen.NUI.Components.preload [new file with mode: 0644]
src/Tizen.NUI/Tizen.NUI.preload
src/Tizen.NUI/src/internal/Application/Application.cs
src/Tizen.NUI/src/public/Application/NUIApplication.cs [changed mode: 0644->0755]

index 7c42b25..d69aa98 100755 (executable)
@@ -6,6 +6,10 @@
   </PropertyGroup>
 
   <ItemGroup>
+    <TizenPreloadFile Include="Tizen.NUI.Components.preload" Sequence="30" />
+  </ItemGroup>
+
+  <ItemGroup>
     <ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
     <ProjectReference Include="..\Tizen.NUI\Tizen.NUI.csproj" />
     <ProjectReference Include="..\Tizen.System.Feedback\Tizen.System.Feedback.csproj" />
diff --git a/src/Tizen.NUI.Components/Tizen.NUI.Components.preload b/src/Tizen.NUI.Components/Tizen.NUI.Components.preload
new file mode 100644 (file)
index 0000000..7b4a7f5
--- /dev/null
@@ -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()
index 96a3b59..2ad244e 100644 (file)
@@ -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()
index c1f958e..8fa349c 100755 (executable)
@@ -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();
             }
old mode 100644 (file)
new mode 100755 (executable)
index 6723941..90e3aab
@@ -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.
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        static public void PreLoad()
+        static public void Preload()
         {
             Interop.Application.PreInitialize();
-            isPreLoad = true;
+            isPreload = true;
         }
 
         /// <summary>
@@ -482,11 +482,11 @@ namespace Tizen.NUI
         /// <summary>
         /// Check if it is loaded as dotnet-loader-nui.
         /// </summary>
-        static internal bool IsPreLoad
+        static internal bool IsPreload
         {
             get
             {
-                return isPreLoad;
+                return isPreload;
             }
         }
     }