Calculates display info on construction and provides it.
◆ DisplayInfo()
◆ estimateDisplayData()
| void estimateDisplayData |
( |
Context |
context | ) |
|
|
protected |
calculate display matrics, size and dpi
- Parameters
-
◆ getDisplayDPI()
◆ getDisplaySize()
| double getDisplaySize |
( |
| ) |
|
- Returns
- screen size in inch
◆ getScreenDensityFactor()
| double getScreenDensityFactor |
( |
| ) |
|
- Returns
- screen density factor, 1 @ mdpi, 1.5@hdpi...
◆ getScreenHeight()
| double getScreenHeight |
( |
| ) |
|
- Returns
- screen height in pixels
◆ getScreenWidth()
| double getScreenWidth |
( |
| ) |
|
- Returns
- screen width in pixels
The documentation for this class was generated from the following file: