MapTrip SDK Android Manual 9.9.7
DisplayInfo Class Reference

Calculates display info on construction and provides it.

Public Member Functions

 DisplayInfo (Context c)
 
int getDisplayDPI ()
 
double getDisplaySize ()
 
double getScreenDensityFactor ()
 
double getScreenHeight ()
 
double getScreenWidth ()
 

Protected Member Functions

void estimateDisplayData (Context context)
 

Constructor & Destructor Documentation

◆ DisplayInfo()

DisplayInfo ( Context  c)

Member Function Documentation

◆ estimateDisplayData()

void estimateDisplayData ( Context  context)
protected

calculate display matrics, size and dpi

Parameters
context

◆ getDisplayDPI()

int getDisplayDPI ( )
Returns
dpi of display

◆ 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: