addJavascriptChannels method

Future<void> addJavascriptChannels(
  1. Set<String> javascriptChannelNames
)

Adds new JavaScript channels to the set of enabled channels.

For each value in this list the platform's webview should make sure that a corresponding property with a postMessage method is set on window. For example for a JavaScript channel named Foo it should be possible for JavaScript code executing in the webview to do

Foo.postMessage('hello');

See also: CreationParams.javascriptChannelNames.

Implementation

Future<void> addJavascriptChannels(Set<String> javascriptChannelNames) {
  throw UnimplementedError("WebView addJavascriptChannels is not implemented on the current platform");
}