[Information] Added preload method for optimization (#1492)
authorJongHeonChoi <j-h.choi@samsung.com>
Tue, 7 Apr 2020 08:52:24 +0000 (17:52 +0900)
committerGitHub <noreply@github.com>
Tue, 7 Apr 2020 08:52:24 +0000 (17:52 +0900)
src/Tizen.System.Information/Common/Information.cs

index b9f2b17..62a01aa 100644 (file)
@@ -16,6 +16,7 @@
 
 using System;
 using System.Collections.Generic;
+using System.ComponentModel;
 
 namespace Tizen.System
 {
@@ -191,5 +192,13 @@ namespace Tizen.System
 
             RuntimeInfo.UnsetCallback(runtimeFeature, callback);
         }
+
+        // for internal use only
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        static void Preload()
+        {
+            TryGetValue("http://tizen.org/feature/screen.width", out int width);
+            TryGetValue("http://tizen.org/feature/screen.height", out int height);
+        }
     }
 }