android.view
Class Display
java.lang.Object
android.view.Display
public class Display
- extends Object
|
Constructor Summary |
Display(int display)
Use the WindowManager interface to create a Display object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_DISPLAY
public static final int DEFAULT_DISPLAY
- Specify the default Display
- See Also:
- Constant Field Values
Display
Display(int display)
- Use the WindowManager interface to create a Display object.
Display gives you access to some information about a particular display
connected to the device.
getDisplayId
public int getDisplayId()
- Returns:
- index of this display.
getDisplayCount
static int getDisplayCount()
- Returns:
- the number of displays connected to the device.
getWidth
public int getWidth()
- Returns:
- width of this display in pixels.
getHeight
public int getHeight()
- Returns:
- height of this display in pixels.
getOrientation
public int getOrientation()
- Returns:
- orientation of this display.
getPixelFormat
public int getPixelFormat()
- Returns:
- pixel format of this display.
getRefreshRate
public float getRefreshRate()
- Returns:
- refresh rate of this display in frames per second.
getMetrics
public void getMetrics(DisplayMetrics outMetrics)
- Initialize a DisplayMetrics object from this display's data.
- Parameters:
outMetrics -
Please submit a feedback, bug or feature