DisplayManager

Class of android.hardware.display · DisplayManager.java · Android's reference

public final class DisplayManager

The displays: the default display of the window, and the virtual displays the app makes, which show nowhere (what they would show goes to their surface, which nothing composes). Listeners hear of virtual displays added and removed.

Nested types

Fields

public static final String DISPLAY_CATEGORY_PRESENTATION = "android.hardware.display.category.PRESENTATION" source
public static final int VIRTUAL_DISPLAY_FLAG_PUBLIC = 1 source
public static final int VIRTUAL_DISPLAY_FLAG_PRESENTATION = 2 source
public static final int VIRTUAL_DISPLAY_FLAG_SECURE = 4 source
public static final int VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY = 8 source
public static final int VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR = 16 source

Constructors

public DisplayManager() empty body source

Methods

public Display getDisplay(int displayId) source
public Display[] getDisplays() source
public Display[] getDisplays(String category) source

the presentation displays: the virtual ones that are

public void registerDisplayListener(DisplayListener listener, Handler handler) source
public void unregisterDisplayListener(DisplayListener listener) source
public VirtualDisplay createVirtualDisplay(String name, int width, int height, int densityDpi, android.view.Surface surface, int flags) source
public VirtualDisplay createVirtualDisplay(String name, int width, int height, int densityDpi, android.view.Surface surface, int flags, VirtualDisplay.Callback callback, Handler handler) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.