com.android.ide.common.rendering.api
Class HardwareConfig
java.lang.Object
com.android.ide.common.rendering.api.HardwareConfig
public class HardwareConfig
- extends java.lang.Object
Hardware configuration for the rendering.
This is immutable.
- Since:
- 9
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HardwareConfig
public HardwareConfig(int screenWidth,
int screenHeight,
Density density,
float xdpi,
float ydpi,
ScreenSize screenSize,
ScreenOrientation orientation,
boolean softwareButtons)
getScreenWidth
public int getScreenWidth()
getScreenHeight
public int getScreenHeight()
getDensity
public Density getDensity()
getXdpi
public float getXdpi()
getYdpi
public float getYdpi()
getScreenSize
public ScreenSize getScreenSize()
getOrientation
public ScreenOrientation getOrientation()
hasSoftwareButtons
public boolean hasSoftwareButtons()