A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.chrome.com/docs/extensions/reference/api/system/display below:

chrome.system.display | API | Chrome for Developers

Skip to main content chrome.system.display

Stay organized with collections Save and categorize content based on your preferences.

Description

Use the system.display API to query display metadata.

Permissions

system.display

Types

ActiveState

An enum to tell if the display is detected and used by the system. The display is considered 'inactive', if it is not detected by the system (maybe disconnected, or considered disconnected due to sleep mode, etc). This state is used to keep existing display when the all displays are disconnected, for example.

Properties Properties Properties Properties Properties Properties Properties

LayoutPosition

Layout position, i.e. edge of parent that the display is attached to.

Enum

"top"

"right"

"bottom"

"left"

MirrorMode

Mirror mode, i.e. different ways of how a display is mirrored to other displays.

Enum

"off"
Specifies the default mode (extended or unified desktop).

"normal"
Specifies that the default source display will be mirrored to all other displays.

"mixed"
Specifies that the specified source display will be mirrored to the provided destination displays. All other connected displays will be extended.

Properties Properties Properties Properties Methods

clearTouchCalibration()

chrome.system.display.clearTouchCalibration(
  id: string,
)
: void

Resets the touch calibration for the display and brings it back to its default state by clearing any touch calibration data associated with the display.

Parameters

completeCustomTouchCalibration()

chrome.system.display.completeCustomTouchCalibration(
  pairs: TouchCalibrationPairQuad,
  bounds: Bounds,
)
: void

Sets the touch calibration pairs for a display. These pairs would be used to calibrate the touch screen for display with id called in startCustomTouchCalibration(). Always call startCustomTouchCalibration before calling this method. If another touch calibration is already in progress this will throw an error.

Parameters

enableUnifiedDesktop()

chrome.system.display.enableUnifiedDesktop(
  enabled: boolean,
)
: void

Enables/disables the unified desktop feature. If enabled while mirroring is active, the desktop mode will not change until mirroring is turned off. Otherwise, the desktop mode will switch to unified immediately. NOTE: This is only available to ChromeOS Kiosk apps and Web UI.

Parameters

getDisplayLayout()

chrome.system.display.getDisplayLayout(): Promise<DisplayLayout[]>

Requests the layout info for all displays. NOTE: This is only available to ChromeOS Kiosk apps and Web UI.

getInfo()

chrome.system.display.getInfo(
  flags?: GetInfoFlags,
)
: Promise<DisplayUnitInfo[]>

Requests the information for all attached display devices.

Parameters

overscanCalibrationAdjust()

chrome.system.display.overscanCalibrationAdjust(
  id: string,
  delta: Insets,
)
: void

Adjusts the current overscan insets for a display. Typically this should either move the display along an axis (e.g. left+right have the same value) or scale it along an axis (e.g. top+bottom have opposite values). Each Adjust call is cumulative with previous calls since Start.

Parameters

overscanCalibrationComplete()

chrome.system.display.overscanCalibrationComplete(
  id: string,
)
: void

Complete overscan adjustments for a display by saving the current values and hiding the overlay.

Parameters

overscanCalibrationReset()

chrome.system.display.overscanCalibrationReset(
  id: string,
)
: void

Resets the overscan insets for a display to the last saved value (i.e before Start was called).

Parameters

overscanCalibrationStart()

chrome.system.display.overscanCalibrationStart(
  id: string,
)
: void

Starts overscan calibration for a display. This will show an overlay on the screen indicating the current overscan insets. If overscan calibration for display id is in progress this will reset calibration.

Parameters

setDisplayLayout()

chrome.system.display.setDisplayLayout(
  layouts: DisplayLayout[],
)
: Promise<void>

Set the layout for all displays. Any display not included will use the default layout. If a layout would overlap or be otherwise invalid it will be adjusted to a valid layout. After layout is resolved, an onDisplayChanged event will be triggered. NOTE: This is only available to ChromeOS Kiosk apps and Web UI.

Parameters

setDisplayProperties()

chrome.system.display.setDisplayProperties(
  id: string,
  info: DisplayProperties,
)
: Promise<void>

Updates the properties for the display specified by id, according to the information provided in info. On failure, runtime.lastError will be set. NOTE: This is only available to ChromeOS Kiosk apps and Web UI.

Parameters

setMirrorMode()

chrome.system.display.setMirrorMode(
  info: MirrorModeInfo,
)
: Promise<void>

Sets the display mode to the specified mirror mode. Each call resets the state from previous calls. Calling setDisplayProperties() will fail for the mirroring destination displays. NOTE: This is only available to ChromeOS Kiosk apps and Web UI.

Parameters

showNativeTouchCalibration()

chrome.system.display.showNativeTouchCalibration(
  id: string,
)
: Promise<boolean>

Displays the native touch calibration UX for the display with id as display id. This will show an overlay on the screen with required instructions on how to proceed. The callback will be invoked in case of successful calibration only. If the calibration fails, this will throw an error.

Parameters

startCustomTouchCalibration()

chrome.system.display.startCustomTouchCalibration(
  id: string,
)
: void

Starts custom touch calibration for a display. This should be called when using a custom UX for collecting calibration data. If another touch calibration is already in progress this will throw an error.

Parameters Events

onDisplayChanged

chrome.system.display.onDisplayChanged.addListener(
  callback: function,
)

Fired when anything changes to the display configuration.

Parameters

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-11 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 2025-08-11 UTC."],[],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4