Use the system.display API to query display metadata.
Use the system.display API to query display metadata. * available since Chrome 30 * https://developer.chrome.com/extensions/system.display
(clear-touch-calibration id)
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.
|id| - The display's unique identifier.
https://developer.chrome.com/extensions/system.display#method-clearTouchCalibration.
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. |id| - The display's unique identifier. https://developer.chrome.com/extensions/system.display#method-clearTouchCalibration.
(complete-custom-touch-calibration pairs bounds)
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.
|pairs| - The pairs of point used to calibrate the display. |bounds| - Bounds of the display when the touch calibration was performed. |bounds.left| and |bounds.top| values are ignored.
https://developer.chrome.com/extensions/system.display#method-completeCustomTouchCalibration.
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. |pairs| - The pairs of point used to calibrate the display. |bounds| - Bounds of the display when the touch calibration was performed. |bounds.left| and |bounds.top| values are ignored. https://developer.chrome.com/extensions/system.display#method-completeCustomTouchCalibration.
(complete-custom-touch-calibration* config pairs bounds)
(enable-unified-desktop enabled)
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 Chrome OS Kiosk apps and Web UI.
|enabled| - True if unified desktop should be enabled.
https://developer.chrome.com/extensions/system.display#method-enableUnifiedDesktop.
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 Chrome OS Kiosk apps and Web UI. |enabled| - True if unified desktop should be enabled. https://developer.chrome.com/extensions/system.display#method-enableUnifiedDesktop.
(get-display-layout)
Requests the layout info for all displays. NOTE: This is only available to Chrome OS Kiosk apps and Web UI.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [layouts] where:
|layouts| - https://developer.chrome.com/extensions/system.display#property-callback-layouts.
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/system.display#method-getDisplayLayout.
Requests the layout info for all displays. NOTE: This is only available to Chrome OS Kiosk apps and Web UI. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [layouts] where: |layouts| - https://developer.chrome.com/extensions/system.display#property-callback-layouts. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/system.display#method-getDisplayLayout.
(get-info)
(get-info flags)
Requests the information for all attached display devices.
|flags| - Options affecting how the information is returned.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [display-info] where:
|display-info| - https://developer.chrome.com/extensions/system.display#property-callback-displayInfo.
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/system.display#method-getInfo.
Requests the information for all attached display devices. |flags| - Options affecting how the information is returned. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [display-info] where: |display-info| - https://developer.chrome.com/extensions/system.display#property-callback-displayInfo. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/system.display#method-getInfo.
(overscan-calibration-adjust id delta)
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.
|id| - The display's unique identifier. |delta| - The amount to change the overscan insets.
https://developer.chrome.com/extensions/system.display#method-overscanCalibrationAdjust.
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. |id| - The display's unique identifier. |delta| - The amount to change the overscan insets. https://developer.chrome.com/extensions/system.display#method-overscanCalibrationAdjust.
(overscan-calibration-complete id)
Complete overscan adjustments for a display by saving the current values and hiding the overlay.
|id| - The display's unique identifier.
https://developer.chrome.com/extensions/system.display#method-overscanCalibrationComplete.
Complete overscan adjustments for a display by saving the current values and hiding the overlay. |id| - The display's unique identifier. https://developer.chrome.com/extensions/system.display#method-overscanCalibrationComplete.
(overscan-calibration-reset id)
Resets the overscan insets for a display to the last saved value (i.e before Start was called).
|id| - The display's unique identifier.
https://developer.chrome.com/extensions/system.display#method-overscanCalibrationReset.
Resets the overscan insets for a display to the last saved value (i.e before Start was called). |id| - The display's unique identifier. https://developer.chrome.com/extensions/system.display#method-overscanCalibrationReset.
(overscan-calibration-start id)
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.
|id| - The display's unique identifier.
https://developer.chrome.com/extensions/system.display#method-overscanCalibrationStart.
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. |id| - The display's unique identifier. https://developer.chrome.com/extensions/system.display#method-overscanCalibrationStart.
(set-display-layout layouts)
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 Chrome OS Kiosk apps and Web UI.
|layouts| - The layout information, required for all displays except the primary display.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/system.display#method-setDisplayLayout.
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 Chrome OS Kiosk apps and Web UI. |layouts| - The layout information, required for all displays except the primary display. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/system.display#method-setDisplayLayout.
(set-display-properties id info)
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 Chrome OS Kiosk apps and Web UI.
|id| - The display's unique identifier. |info| - The information about display properties that should be changed. A property will be changed only if a new value for it is specified in |info|.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/system.display#method-setDisplayProperties.
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 Chrome OS Kiosk apps and Web UI. |id| - The display's unique identifier. |info| - The information about display properties that should be changed. A property will be changed only if a new value for it is specified in |info|. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/system.display#method-setDisplayProperties.
(set-mirror-mode info)
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 Chrome OS Kiosk apps and Web UI.
|info| - The information of the mirror mode that should be applied to the display mode.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/system.display#method-setMirrorMode.
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 Chrome OS Kiosk apps and Web UI. |info| - The information of the mirror mode that should be applied to the display mode. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/system.display#method-setMirrorMode.
(show-native-touch-calibration id)
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.
|id| - The display's unique identifier.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [success] where:
|success| - https://developer.chrome.com/extensions/system.display#property-callback-success.
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/system.display#method-showNativeTouchCalibration.
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. |id| - The display's unique identifier. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [success] where: |success| - https://developer.chrome.com/extensions/system.display#property-callback-success. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/system.display#method-showNativeTouchCalibration.
(start-custom-touch-calibration id)
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.
|id| - The display's unique identifier.
https://developer.chrome.com/extensions/system.display#method-startCustomTouchCalibration.
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. |id| - The display's unique identifier. https://developer.chrome.com/extensions/system.display#method-startCustomTouchCalibration.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.ext.system.display namespace.
Taps all valid non-deprecated events in chromex.ext.system.display namespace.
(tap-on-display-changed-events channel & args)
Fired when anything changes to the display configuration.
Events will be put on the |channel| with signature [::on-display-changed []].
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
https://developer.chrome.com/extensions/system.display#event-onDisplayChanged.
Fired when anything changes to the display configuration. Events will be put on the |channel| with signature [::on-display-changed []]. Note: |args| will be passed as additional parameters into Chrome event's .addListener call. https://developer.chrome.com/extensions/system.display#event-onDisplayChanged.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close