Class DisplayInfo


  • public class DisplayInfo
    extends Object
    Wraps information about currently connected displays.
    Since:
    3.0.0
    • Field Detail

      • remote

        public final boolean remote
        True if a remote display is connected on the current route. This is usually a mirrored display connected through wifi. HDMI connection might not be covered by this.
      • secure

        public final boolean secure
        True if all connected displays are secure and support protected buffers. See Display.FLAG_SECURE and Display.FLAG_SUPPORTS_PROTECTED_BUFFERS.

        Note that this information is only available on Devices with API level >= 17. On API 16, this will always be false.
      • numberOfTotalDisplays

        public final int numberOfTotalDisplays
        The total number of displays
      • numberOfPresentationDisplays

        public final int numberOfPresentationDisplays
        The number of presentation displays. These can be for instance debug overlays or casting screens.