java.lang.Object | |
↳ | android.support.v4.hardware.display.DisplayManagerCompat |
Helper for accessing features in DisplayManager
introduced after API level 4 in a backwards compatible fashion.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | DISPLAY_CATEGORY_PRESENTATION | Display category: Presentation displays. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets information about a logical display.
| |||||||||||
Gets all currently valid logical displays.
| |||||||||||
Gets all currently valid logical displays of the specified category.
| |||||||||||
Gets an instance of the display manager given the context.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Display category: Presentation displays.
This category can be used to identify secondary displays that are suitable for use as presentation displays.
Gets information about a logical display. The display metrics may be adjusted to provide compatibility for legacy applications.
displayId | The logical display id. |
---|
Gets all currently valid logical displays.
Gets all currently valid logical displays of the specified category.
When there are multiple displays in a category the returned displays are sorted
of preference. For example, if the requested category is
DISPLAY_CATEGORY_PRESENTATION
and there are multiple presentation displays
then the displays are sorted so that the first display in the returned array
is the most preferred presentation display. The application may simply
use the first display or allow the user to choose.
category | The requested display category or null to return all displays. |
---|
Gets an instance of the display manager given the context.