setDisplayProperties method
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.
Implementation
Future<void> setDisplayProperties(
String id,
DisplayProperties info,
) async {
await promiseToFuture<void>($js.chrome.system.display.setDisplayProperties(
id,
info.toJS,
));
}