belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
DisplayManagerCompat
public
abstract
class
DisplayManagerCompat
extends Object
java.lang.Object | |
↳ | android.support.v4.hardware.display.DisplayManagerCompat |
Helper for accessing features in DisplayManager
.
Summary
Constants | |
---|---|
String |
DISPLAY_CATEGORY_PRESENTATION
Display category: Presentation displays. |
Public methods | |
---|---|
abstract
Display
|
getDisplay(int displayId)
Gets information about a logical display. |
abstract
Display[]
|
getDisplays()
Gets all currently valid logical displays. |
abstract
Display[]
|
getDisplays(String category)
Gets all currently valid logical displays of the specified category. |
static
DisplayManagerCompat
|
getInstance(Context context)
Gets an instance of the display manager given the context. |
Inherited methods | |
---|---|
![]()
java.lang.Object
|
Constants
DISPLAY_CATEGORY_PRESENTATION
String DISPLAY_CATEGORY_PRESENTATION
Display category: Presentation displays.
This category can be used to identify secondary displays that are suitable for use as presentation displays.
Constant Value: "android.hardware.display.category.PRESENTATION"
Public methods
getDisplay
Display getDisplay (int displayId)
Gets information about a logical display. The display metrics may be adjusted to provide compatibility for legacy applications.
Parameters | |
---|---|
displayId |
int : The logical display id. |
Returns | |
---|---|
Display |
The display object, or null if there is no valid display with the given id. |
getDisplays
Display[] getDisplays ()
Gets all currently valid logical displays.
Returns | |
---|---|
Display[] |
An array containing all displays. |