From: JongHeonChoi Date: Tue, 7 Apr 2020 08:52:14 +0000 (+0900) Subject: [Information] Added preload method for optimization (#1494) X-Git-Tag: submit/tizen_5.5_tv/20200427.163527~1^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33dbe92c4cb819ffbabfbccc359aec4a4bca070d;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Information] Added preload method for optimization (#1494) --- diff --git a/src/Tizen.System.Information/Common/Information.cs b/src/Tizen.System.Information/Common/Information.cs index b9f2b17..62a01aa 100644 --- a/src/Tizen.System.Information/Common/Information.cs +++ b/src/Tizen.System.Information/Common/Information.cs @@ -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); + } } }