Package io.nevernull.mobileui
Class DisplayService.DisplayInfo
- java.lang.Object
-
- io.nevernull.mobileui.DisplayService.DisplayInfo
-
- Enclosing interface:
- DisplayService
public static class DisplayService.DisplayInfo extends Object
Information about the device's display
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDensity()
Returns the display density in PPIfloat
getHeightDp()
Returns the display height in dpint
getHeightPx()
Returns the display height in pixelsfloat
getWidthDp()
Returns the display width in dpint
getWidthPx()
Returns the display width in pixels
-
-
-
Method Detail
-
getDensity
public int getDensity()
Returns the display density in PPI- Returns:
- the display density in PPI
-
getWidthPx
public int getWidthPx()
Returns the display width in pixels- Returns:
- the display width in pixels
-
getHeightPx
public int getHeightPx()
Returns the display height in pixels- Returns:
- the display height in pixels
-
getWidthDp
public float getWidthDp()
Returns the display width in dp- Returns:
- the display width in dp
-
getHeightDp
public float getHeightDp()
Returns the display height in dp- Returns:
- the display height in dp
-
-