Liking cljdoc? Tell your friends :D

chromex.app.system.display

clj

Use the system.display API to query display metadata.

Use the system.display API to query display metadata.

* available since Chrome 33
* https://developer.chrome.com/apps/system.display
raw docstring

api-tableclj

source

clear-touch-calibrationclj/smacro

(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/apps/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/apps/system.display#method-clearTouchCalibration.
sourceraw docstring

clear-touch-calibration*cljs

(clear-touch-calibration* config id)
source

complete-custom-touch-calibrationclj/smacro

(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/apps/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/apps/system.display#method-completeCustomTouchCalibration.
sourceraw docstring

complete-custom-touch-calibration*cljs

(complete-custom-touch-calibration* config pairs bounds)
source

enable-unified-desktopclj/smacro

(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/apps/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/apps/system.display#method-enableUnifiedDesktop.
sourceraw docstring

enable-unified-desktop*cljs

(enable-unified-desktop* config enabled)
source

gen-callclj

source

gen-wrapclj/smacro

(gen-wrap kind item-id config & args)
source

get-display-layoutclj/smacro

(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/apps/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/apps/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/apps/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/apps/system.display#method-getDisplayLayout.
sourceraw docstring

get-display-layout*cljs

(get-display-layout* config)
source

get-infoclj/smacro

(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/apps/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/apps/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/apps/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/apps/system.display#method-getInfo.
sourceraw docstring

get-info*cljs

(get-info* config flags)
source

on-display-changed*cljs

(on-display-changed* config channel & args)
source

overscan-calibration-adjustclj/smacro

(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/apps/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/apps/system.display#method-overscanCalibrationAdjust.
sourceraw docstring

overscan-calibration-adjust*cljs

(overscan-calibration-adjust* config id delta)
source

overscan-calibration-completeclj/smacro

(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/apps/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/apps/system.display#method-overscanCalibrationComplete.
sourceraw docstring

overscan-calibration-complete*cljs

(overscan-calibration-complete* config id)
source

overscan-calibration-resetclj/smacro

(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/apps/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/apps/system.display#method-overscanCalibrationReset.
sourceraw docstring

overscan-calibration-reset*cljs

(overscan-calibration-reset* config id)
source

overscan-calibration-startclj/smacro

(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/apps/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/apps/system.display#method-overscanCalibrationStart.
sourceraw docstring

overscan-calibration-start*cljs

(overscan-calibration-start* config id)
source

set-display-layoutclj/smacro

(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/apps/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/apps/system.display#method-setDisplayLayout.
sourceraw docstring

set-display-layout*cljs

(set-display-layout* config layouts)
source

set-display-propertiesclj/smacro

(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/apps/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/apps/system.display#method-setDisplayProperties.
sourceraw docstring

set-display-properties*cljs

(set-display-properties* config id info)
source

set-mirror-modeclj/smacro

(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/apps/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/apps/system.display#method-setMirrorMode.
sourceraw docstring

set-mirror-mode*cljs

(set-mirror-mode* config info)
source

show-native-touch-calibrationclj/smacro

(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/apps/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/apps/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/apps/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/apps/system.display#method-showNativeTouchCalibration.
sourceraw docstring

show-native-touch-calibration*cljs

(show-native-touch-calibration* config id)
source

start-custom-touch-calibrationclj/smacro

(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/apps/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/apps/system.display#method-startCustomTouchCalibration.
sourceraw docstring

start-custom-touch-calibration*cljs

(start-custom-touch-calibration* config id)
source

tap-all-eventsclj/smacro

(tap-all-events chan)

Taps all valid non-deprecated events in chromex.app.system.display namespace.

Taps all valid non-deprecated events in chromex.app.system.display namespace.
sourceraw docstring

tap-on-display-changed-eventsclj/smacro

(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/apps/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/apps/system.display#event-onDisplayChanged.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close