Example usage for android.hardware.display DisplayManager DISPLAY_CATEGORY_PRESENTATION

List of usage examples for android.hardware.display DisplayManager DISPLAY_CATEGORY_PRESENTATION

Introduction

In this page you can find the example usage for android.hardware.display DisplayManager DISPLAY_CATEGORY_PRESENTATION.

Prototype

String DISPLAY_CATEGORY_PRESENTATION

To view the source code for android.hardware.display DisplayManager DISPLAY_CATEGORY_PRESENTATION.

Click Source Link

Document

Display category: Presentation displays.

Usage

From source file:de.fhg.fokus.famium.presentation.CDVPresentationPlugin.java

private DisplayManager getDisplayManager() {
    if (displayManager == null) {
        displayManager = (DisplayManager) getActivity().getSystemService(Activity.DISPLAY_SERVICE);
        for (Display display : displayManager.getDisplays(DisplayManager.DISPLAY_CATEGORY_PRESENTATION)) {
            addDisplay(display);/*from  w  w w .ja va 2  s. com*/
        }
        displayManager.registerDisplayListener(this, null);
    }
    return displayManager;
}