|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.support.v4.hardware.display.DisplayManagerCompat
public abstract class DisplayManagerCompat
Helper for accessing features in android.hardware.display.DisplayManager
introduced after API level 4 in a backwards compatible fashion.
Field Summary | |
---|---|
static java.lang.String |
DISPLAY_CATEGORY_PRESENTATION
Display category: Presentation displays. |
Method Summary | |
---|---|
abstract android.view.Display |
getDisplay(int displayId)
Gets information about a logical display. |
abstract android.view.Display[] |
getDisplays()
Gets all currently valid logical displays. |
abstract android.view.Display[] |
getDisplays(java.lang.String category)
Gets all currently valid logical displays of the specified category. |
static DisplayManagerCompat |
getInstance(android.content.Context context)
Gets an instance of the display manager given the context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DISPLAY_CATEGORY_PRESENTATION
This category can be used to identify secondary displays that are suitable for use as presentation displays.
for information about presenting content
on secondary displays.
,
getDisplays(String)
,
Constant Field ValuesMethod Detail |
---|
public static DisplayManagerCompat getInstance(android.content.Context context)
public abstract android.view.Display getDisplay(int displayId)
displayId
- The logical display id.
public abstract android.view.Display[] getDisplays()
public abstract android.view.Display[] getDisplays(java.lang.String 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.
DISPLAY_CATEGORY_PRESENTATION
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |