[ Web Proxy ]
URL:
Viewing: http://developer.android.com/reference/android/hardware/display/DisplayManager.DisplayListener [Back]  [Original]

DisplayManager.DisplayListener  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.
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, such as size and density, 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
public abstract void onDisplayAdded (int displayId)

Called whenever a logical display has been added to the system. Use DisplayManager.getDisplay 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
public abstract void onDisplayChanged (int displayId)

Called whenever the properties of a logical Display, such as size and density, have changed.

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

onDisplayRemoved

Added in API level 17
public abstract 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.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-03 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page