IT. Expert System.

Android Reference

DisplayManager


android.hardware.display

Class DisplayManager

    • Constructor Detail

      • DisplayManager

        public DisplayManager(Context context)
    • Method Detail

      • getDisplay

        public Display getDisplay(int displayId)
        Gets information about a logical display. The display metrics may be adjusted to provide compatibility for legacy applications.
        Parameters:
        displayId - The logical display id.
        Returns:
        The display object, or null if there is no valid display with the given id.
      • getDisplays

        public Display[] getDisplays()
        Gets all currently valid logical displays.
        Returns:
        An array containing all displays.
      • getDisplays

        public Display[] getDisplays(String category)
        Gets all currently valid logical displays of the specified category.

        When there are multiple displays in a category the returned displays are sorted of preference. For example, if the requested category is DISPLAY_CATEGORY_PRESENTATION and there are multiple presentation displays then the displays are sorted so that the first display in the returned array is the most preferred presentation display. The application may simply use the first display or allow the user to choose.

        Parameters:
        category - The requested display category or null to return all displays.
        Returns:
        An array containing all displays sorted by order of preference.
        See Also:
        DISPLAY_CATEGORY_PRESENTATION
      • scanWifiDisplays

        public void scanWifiDisplays()
        Initiates a fresh scan of availble Wifi displays. The results are sent as a ACTION_WIFI_DISPLAY_STATUS_CHANGED broadcast.
      • connectWifiDisplay

        public void connectWifiDisplay(String deviceAddress)
        Connects to a Wifi display. The results are sent as a ACTION_WIFI_DISPLAY_STATUS_CHANGED broadcast.

        Automatically remembers the display after a successful connection, if not already remembered.

        Requires android.Manifest.permission#CONFIGURE_WIFI_DISPLAY to connect to unknown displays. No permissions are required to connect to already known displays.

        Parameters:
        deviceAddress - The MAC address of the device to which we should connect.
      • disconnectWifiDisplay

        public void disconnectWifiDisplay()
        Disconnects from the current Wifi display. The results are sent as a ACTION_WIFI_DISPLAY_STATUS_CHANGED broadcast.
      • renameWifiDisplay

        public void renameWifiDisplay(String deviceAddress,
                             String alias)
        Renames a Wifi display.

        The display must already be remembered for this call to succeed. In other words, we must already have successfully connected to the display at least once and then not forgotten it.

        Requires android.Manifest.permission#CONFIGURE_WIFI_DISPLAY.

        Parameters:
        deviceAddress - The MAC address of the device to rename.
        alias - The alias name by which to remember the device, or null or empty if no alias should be used.
      • forgetWifiDisplay

        public void forgetWifiDisplay(String deviceAddress)
        Forgets a previously remembered Wifi display.

        Automatically disconnects from the display if currently connected to it.

        Requires android.Manifest.permission#CONFIGURE_WIFI_DISPLAY.

        Parameters:
        deviceAddress - The MAC address of the device to forget.
      • getWifiDisplayStatus

        public WifiDisplayStatus getWifiDisplayStatus()
        Gets the current Wifi display status. Watch for changes in the status by registering a broadcast receiver for ACTION_WIFI_DISPLAY_STATUS_CHANGED.
        Returns:
        The current Wifi display status.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 2188 / 96487987. Delta: 0.03294 с