projects
/
platform
/
core
/
csapi
/
tizenfx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4d7f99a
)
[Information] Added preload method for optimization (#1492)
author
JongHeonChoi
<j-h.choi@samsung.com>
Tue, 7 Apr 2020 08:52:24 +0000
(17:52 +0900)
committer
GitHub
<noreply@github.com>
Tue, 7 Apr 2020 08:52:24 +0000
(17:52 +0900)
src/Tizen.System.Information/Common/Information.cs
patch
|
blob
|
history
diff --git
a/src/Tizen.System.Information/Common/Information.cs
b/src/Tizen.System.Information/Common/Information.cs
index
b9f2b17
..
62a01aa
100644
(file)
--- 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;
using System.Collections.Generic;
+using System.ComponentModel;
namespace Tizen.System
{
namespace Tizen.System
{
@@
-191,5
+192,13
@@
namespace Tizen.System
RuntimeInfo.UnsetCallback(runtimeFeature, callback);
}
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);
+ }
}
}
}
}