ChromeSystemDisplay class

Properties

hashCode → int
The hash code for this object.
no setterinherited
isAvailable → bool
no setter
onDisplayChanged → EventStream<void>
Fired when anything changes to the display configuration.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearTouchCalibration(String id) → void
NOTE: This is only available to ChromeOS Kiosk apps. 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.
completeCustomTouchCalibration(TouchCalibrationPairQuad pairs, Bounds bounds) → void
NOTE: This is only available to ChromeOS Kiosk apps. 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.
enableUnifiedDesktop(bool enabled) → void
NOTE: This is only available to ChromeOS Kiosk apps. 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. |enabled|: True if unified desktop should be enabled.
getDisplayLayout() → Future<List<DisplayLayout>>
NOTE: This is only available to ChromeOS Kiosk apps. Requests the layout info for all displays. |Returns|: Promise that resolves with the results.
getInfo(GetInfoFlags? flags) → Future<List<DisplayUnitInfo>>
Requests the information for all attached display devices. |flags|: Options affecting how the information is returned. |Returns|: Promise that resolves with the results.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overscanCalibrationAdjust(String id, Insets delta) → void
NOTE: This is only available to ChromeOS Kiosk apps. 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.
overscanCalibrationComplete(String id) → void
NOTE: This is only available to ChromeOS Kiosk apps. Complete overscan adjustments for a display by saving the current values and hiding the overlay. |id|: The display's unique identifier.
overscanCalibrationReset(String id) → void
NOTE: This is only available to ChromeOS Kiosk apps. Resets the overscan insets for a display to the last saved value (i.e before Start was called). |id|: The display's unique identifier.
overscanCalibrationStart(String id) → void
NOTE: This is only available to ChromeOS Kiosk apps. 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.
setDisplayLayout(List<DisplayLayout> layouts) → Future<void>
NOTE: This is only available to ChromeOS Kiosk apps. 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. |layouts|: The layout information, required for all displays except the primary display. |Returns|: Promise that resolves when the function finishes.
setDisplayProperties(String id, DisplayProperties info) → Future<void>
NOTE: This is only available to ChromeOS Kiosk apps. Updates the properties for the display specified by |id|, according to the information provided in |info|. On failure, runtime.lastError will be set. |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|. |Returns|: Promise that resolves when the function finishes.
setMirrorMode(MirrorModeInfo info) → Future<void>
NOTE: This is only available to ChromeOS Kiosk apps. 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. |info|: The information of the mirror mode that should be applied to the display mode. |Returns|: Promise that resolves when the function finishes.
showNativeTouchCalibration(String id) → Future<bool>
NOTE: This is only available to ChromeOS Kiosk apps. 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. |Returns|: Promise that resolves to inform the caller that the touch calibration has ended. The boolean value informs if the calibration was a success or not.
startCustomTouchCalibration(String id) → void
NOTE: This is only available to ChromeOS Kiosk apps. 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.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited