setUiOptions method

Future<void> setUiOptions(
  1. UiOptions options
)

Change the download UI of every window associated with the current browser profile. As long as at least one extension has set UiOptions.enabled to false, the download UI will be hidden. Setting UiOptions.enabled to true while at least one other extension has disabled it will return an error through runtime.lastError. Requires the "downloads.ui" permission in addition to the "downloads" permission. |options|: Encapsulate a change to the download UI. |callback|: Called when the UI update is completed.

Implementation

Future<void> setUiOptions(UiOptions options) async {
  await promiseToFuture<void>(
      $js.chrome.downloads.setUiOptions(options.toJS));
}