sesl.androidx
Toggle table of contents
main
Platform filter
main
Switch theme
Search in API
sesl.androidx
core
/
androidx.core.hardware.display
/
DisplayManagerCompat
Display
Manager
Compat
class
DisplayManagerCompat
(
source
)
Helper for accessing features in
android.hardware.display.DisplayManager
.
Members
Properties
DISPLAY_
CATEGORY_
PRESENTATION
Link copied to clipboard
val
DISPLAY_CATEGORY_PRESENTATION
:
String
=
"android.hardware.display.category.PRESENTATION"
Display category: Presentation displays.
Functions
get
Display
Link copied to clipboard
@
Nullable
open
fun
getDisplay
(
displayId
:
Int
)
:
Display
Gets information about a logical display.
get
Displays
Link copied to clipboard
@
NonNull
open
fun
getDisplays
(
)
:
Array
<
Display
>
Gets all currently valid logical displays.
@
NonNull
open
fun
getDisplays
(
@
Nullable
category
:
String
)
:
Array
<
Display
>
Gets all currently valid logical displays of the specified category.
get
Instance
Link copied to clipboard
@
NonNull
open
fun
getInstance
(
@
NonNull
context
:
Context
)
:
DisplayManagerCompat
Gets an instance of the display manager given the context.