Skip to content

Most visited

Recently visited

navigation
added in API level 17

DisplayManager.DisplayListener

public static interface DisplayManager.DisplayListener

android.hardware.display.DisplayManager.DisplayListener


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

onDisplayAdded

added in API level 17
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 int: The id of the logical display that was added.

onDisplayChanged

added in API level 17
void onDisplayChanged (int displayId)

Called whenever the properties of a logical display have changed.

Parameters
displayId int: The id of the logical display that changed.

onDisplayRemoved

added in API level 17
void onDisplayRemoved (int displayId)

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

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

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)