DisplayManagerCompat

public final class DisplayManagerCompat
extends Object

java.lang.Object
   ↳ androidx.core.hardware.display.DisplayManagerCompat


Helper for accessing features in DisplayManager.

Summary

Constants

String DISPLAY_CATEGORY_PRESENTATION

Display category: Presentation displays.

Public methods

Display getDisplay(int displayId)

Gets information about a logical display.

Display[] getDisplays()

Gets all currently valid logical displays.

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

Constants

DISPLAY_CATEGORY_PRESENTATION

public static final 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"