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
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
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
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.
getDisplayLayout() Future<List<DisplayLayout>>
Requests the layout info for all displays. NOTE: This is only available to Chrome OS Kiosk apps and Web UI. |callback|: The callback to invoke 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. |callback|: The callback to invoke with the results.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overscanCalibrationAdjust(String id, Insets delta) → 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. |id|: The display's unique identifier. |delta|: The amount to change the overscan insets.
overscanCalibrationComplete(String id) → void
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
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
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>
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. |callback|: Empty function called when the function finishes. To find out whether the function succeeded, runtime.lastError should be queried.
setDisplayProperties(String id, DisplayProperties info) Future<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 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|. |callback|: Empty function called when the function finishes. To find out whether the function succeeded, runtime.lastError should be queried.
setMirrorMode(MirrorModeInfo info) Future<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 Chrome OS Kiosk apps and Web UI. |info|: The information of the mirror mode that should be applied to the display mode. |callback|: Empty function called when the function finishes. To find out whether the function succeeded, runtime.lastError should be queried.
showNativeTouchCalibration(String id) Future<bool>
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. |callback|: Optional callback to inform the caller that the touch calibration has ended. The argument of the callback informs if the calibration was a success or not.
startCustomTouchCalibration(String id) → 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. |id|: The display's unique identifier.
toString() String
A string representation of this object.
inherited

Operators

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