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.
public static final String DISPLAY_CATEGORY_PRESENTATION = "android.hardware.display.category.PRESENTATION" sourcepublic static final int VIRTUAL_DISPLAY_FLAG_PUBLIC = 1 sourcepublic static final int VIRTUAL_DISPLAY_FLAG_PRESENTATION = 2 sourcepublic static final int VIRTUAL_DISPLAY_FLAG_SECURE = 4 sourcepublic static final int VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY = 8 sourcepublic static final int VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR = 16 sourcepublic DisplayManager() empty body sourcepublic Display getDisplay(int displayId) sourcepublic Display[] getDisplays() sourcepublic Display[] getDisplays(String category) sourcethe presentation displays: the virtual ones that are
public void registerDisplayListener(DisplayListener listener, Handler handler) sourcepublic void unregisterDisplayListener(DisplayListener listener) sourcepublic VirtualDisplay createVirtualDisplay(String name, int width, int height, int densityDpi, android.view.Surface surface, int flags) sourcepublic VirtualDisplay createVirtualDisplay(String name, int width, int height, int densityDpi, android.view.Surface surface, int flags, VirtualDisplay.Callback callback, Handler handler) sourceMade 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.