public class RuntimeInfo
extends java.lang.Object
Constructor and Description |
---|
RuntimeInfo() |
Modifier and Type | Method and Description |
---|---|
static int |
dpToPixel(int dp)
Converts a given dp value into physical pixels.
|
static IMDApplication |
getApplication()
Returns instance of the application
|
static float |
getFormFactor()
Get the form factor of this display.
|
static java.lang.String |
getProperty(java.lang.String key)
Returns property value for the given key.
|
static int |
getScreenHeight() |
static int |
getScreenPPI() |
static int |
getScreenWidth() |
static int |
getStatusbarHeight() |
static void |
setProperty(java.lang.String key,
java.lang.String value)
Sets the value for the given key.
|
public static IMDApplication getApplication()
public static int getScreenPPI()
public static int getScreenWidth()
public static int getScreenHeight()
public static int getStatusbarHeight()
public static int dpToPixel(int dp)
dp
- public static float getFormFactor()
public static void setProperty(java.lang.String key, java.lang.String value)
key
- - property key.value
- - property value. Passing null will remove property with the given key.java.lang.NullPointerException
- if key is NULL.public static java.lang.String getProperty(java.lang.String key)
key
- - key to lookup.java.lang.NullPointerException
- if key is NULL.