setUninstallURL method

Future<void> setUninstallURL(
  1. String url
)

Sets the URL to be visited upon uninstallation. This may be used to clean up server-side data, do analytics, and implement surveys. Maximum 1023 characters. url URL to be opened after the extension is uninstalled. This URL must have an http: or https: scheme. Set an empty string to not open a new tab upon uninstallation. returns Called when the uninstall URL is set. If the given URL is invalid, runtime.lastError will be set.

Implementation

Future<void> setUninstallURL(String url) async {
  await promiseToFuture<void>($js.chrome.runtime.setUninstallURL(url));
}