Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static interface

DisplayManager.DisplayListener

android.hardware.display.DisplayManager.DisplayListener

Class Overview

Listens for changes in available display devices.

Summary

Public Methods
abstract void onDisplayAdded (int displayId)
Called whenever a logical display has been added to the system.
abstract void onDisplayChanged (int displayId)
Called whenever the properties of a logical display have changed.
abstract void onDisplayRemoved (int displayId)
Called whenever a logical display has been removed from the system.

Public Methods

public abstract void onDisplayAdded (int displayId)

Called whenever a logical display has been added to the system. Use getDisplay(int) to get more information about the display.

Parameters
displayId The id of the logical display that was added.

public abstract void onDisplayChanged (int displayId)

Called whenever the properties of a logical display have changed.

Parameters
displayId The id of the logical display that changed.

public abstract void onDisplayRemoved (int displayId)

Called whenever a logical display has been removed from the system.

Parameters
displayId The id of the logical display that was removed.