setApplicationNameForUserAgent method

  1. @override
Future<void> setApplicationNameForUserAgent(
  1. String applicationName
)
override

Append a string to the webview's user-agent.

Implementation

@override
Future<void> setApplicationNameForUserAgent(String applicationName) async {
  if (!(Platform.isWindows || Platform.isLinux || Platform.isMacOS)) {
    return;
  }
  await channel.invokeMethod("setApplicationNameForUserAgent", {
    "viewId": viewId,
    "applicationName": applicationName,
  });
}