[webview_flutter] update pigeon to 11 (#4821)
updates pigeon version to 11 to remove need for primitive enum wrappers - removes unnused enum wrappers.
Some work toward https://github.com/flutter/flutter/issues/133455
diff --git a/packages/local_auth/local_auth_ios/pigeons/messages.dart b/packages/local_auth/local_auth_ios/pigeons/messages.dart
index b230597..6753614 100644
--- a/packages/local_auth/local_auth_ios/pigeons/messages.dart
+++ b/packages/local_auth/local_auth_ios/pigeons/messages.dart
@@ -85,8 +85,8 @@
/// Pigeon equivalent of the subset of BiometricType used by iOS.
enum AuthBiometric { face, fingerprint }
-// TODO(stuartmorgan): Remove this when
-// https://github.com/flutter/flutter/issues/87307 is implemented.
+// TODO(stuartmorgan): Enums need be wrapped in a data class because thay can't
+// be used as collection arguments. See https://github.com/flutter/flutter/issues/133728
class AuthBiometricWrapper {
AuthBiometricWrapper({required this.value});
final AuthBiometric value;
diff --git a/packages/webview_flutter/webview_flutter_android/CHANGELOG.md b/packages/webview_flutter/webview_flutter_android/CHANGELOG.md
index 3efc759..86685a2 100644
--- a/packages/webview_flutter/webview_flutter_android/CHANGELOG.md
+++ b/packages/webview_flutter/webview_flutter_android/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 3.9.5
+
+* Updates pigeon to 11 and removes unneeded enum wrappers.
+
## 3.9.4
* Adds pub topics to package metadata.
diff --git a/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/FileChooserParamsFlutterApiImpl.java b/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/FileChooserParamsFlutterApiImpl.java
index 626d868..5ad5923 100644
--- a/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/FileChooserParamsFlutterApiImpl.java
+++ b/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/FileChooserParamsFlutterApiImpl.java
@@ -34,25 +34,21 @@
this.instanceManager = instanceManager;
}
- private static GeneratedAndroidWebView.FileChooserModeEnumData toFileChooserEnumData(int mode) {
- final GeneratedAndroidWebView.FileChooserModeEnumData.Builder builder =
- new GeneratedAndroidWebView.FileChooserModeEnumData.Builder();
+ private static GeneratedAndroidWebView.FileChooserMode toFileChooserEnumData(int mode) {
switch (mode) {
case WebChromeClient.FileChooserParams.MODE_OPEN:
- builder.setValue(GeneratedAndroidWebView.FileChooserMode.OPEN);
- break;
+ return GeneratedAndroidWebView.FileChooserMode.OPEN;
+
case WebChromeClient.FileChooserParams.MODE_OPEN_MULTIPLE:
- builder.setValue(GeneratedAndroidWebView.FileChooserMode.OPEN_MULTIPLE);
- break;
+ return GeneratedAndroidWebView.FileChooserMode.OPEN_MULTIPLE;
+
case WebChromeClient.FileChooserParams.MODE_SAVE:
- builder.setValue(GeneratedAndroidWebView.FileChooserMode.SAVE);
- break;
+ return GeneratedAndroidWebView.FileChooserMode.SAVE;
+
default:
throw new IllegalArgumentException(String.format("Unsupported FileChooserMode: %d", mode));
}
-
- return builder.build();
}
/**
diff --git a/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/GeneratedAndroidWebView.java b/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/GeneratedAndroidWebView.java
index cc52b0b..71c01f1 100644
--- a/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/GeneratedAndroidWebView.java
+++ b/packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/GeneratedAndroidWebView.java
@@ -1,7 +1,7 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Autogenerated from Pigeon (v9.2.5), do not edit directly.
+// Autogenerated from Pigeon (v11.0.1), do not edit directly.
// See also: https://pub.dev/packages/pigeon
package io.flutter.plugins.webviewflutter;
@@ -95,55 +95,6 @@
}
/** Generated class from Pigeon that represents data sent in messages. */
- public static final class FileChooserModeEnumData {
- private @NonNull FileChooserMode value;
-
- public @NonNull FileChooserMode getValue() {
- return value;
- }
-
- public void setValue(@NonNull FileChooserMode setterArg) {
- if (setterArg == null) {
- throw new IllegalStateException("Nonnull field \"value\" is null.");
- }
- this.value = setterArg;
- }
-
- /** Constructor is non-public to enforce null safety; use Builder. */
- FileChooserModeEnumData() {}
-
- public static final class Builder {
-
- private @Nullable FileChooserMode value;
-
- public @NonNull Builder setValue(@NonNull FileChooserMode setterArg) {
- this.value = setterArg;
- return this;
- }
-
- public @NonNull FileChooserModeEnumData build() {
- FileChooserModeEnumData pigeonReturn = new FileChooserModeEnumData();
- pigeonReturn.setValue(value);
- return pigeonReturn;
- }
- }
-
- @NonNull
- ArrayList<Object> toList() {
- ArrayList<Object> toListResult = new ArrayList<Object>(1);
- toListResult.add(value == null ? null : value.index);
- return toListResult;
- }
-
- static @NonNull FileChooserModeEnumData fromList(@NonNull ArrayList<Object> list) {
- FileChooserModeEnumData pigeonResult = new FileChooserModeEnumData();
- Object value = list.get(0);
- pigeonResult.setValue(value == null ? null : FileChooserMode.values()[(int) value]);
- return pigeonResult;
- }
- }
-
- /** Generated class from Pigeon that represents data sent in messages. */
public static final class WebResourceRequestData {
private @NonNull String url;
@@ -490,7 +441,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.InstanceManagerHostApi.clear", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.InstanceManagerHostApi.clear",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -534,7 +487,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.JavaObjectHostApi.dispose", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.JavaObjectHostApi.dispose",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -583,7 +538,9 @@
public void dispose(@NonNull Long identifierArg, @NonNull Reply<Void> callback) {
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.JavaObjectFlutterApi.dispose", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.JavaObjectFlutterApi.dispose",
+ getCodec());
channel.send(
new ArrayList<Object>(Collections.singletonList(identifierArg)),
channelReply -> callback.reply(null));
@@ -623,7 +580,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.CookieManagerHostApi.attachInstance",
+ "dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.attachInstance",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -648,7 +605,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.CookieManagerHostApi.setCookie", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.setCookie",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -675,7 +634,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.CookieManagerHostApi.removeAllCookies",
+ "dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.removeAllCookies",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -707,7 +666,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.CookieManagerHostApi.setAcceptThirdPartyCookies",
+ "dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.setAcceptThirdPartyCookies",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -846,7 +805,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.create", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.create",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -869,7 +830,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.loadData", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.loadData",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -900,7 +863,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebViewHostApi.loadDataWithBaseUrl",
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.loadDataWithBaseUrl",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -935,7 +898,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.loadUrl", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.loadUrl",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -963,7 +928,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.postUrl", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.postUrl",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -989,7 +956,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.getUrl", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getUrl",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -1013,7 +982,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.canGoBack", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.canGoBack",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -1037,7 +1008,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.canGoForward", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.canGoForward",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -1061,7 +1034,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.goBack", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.goBack",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -1084,7 +1059,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.goForward", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.goForward",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -1107,7 +1084,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.reload", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.reload",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -1130,7 +1109,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.clearCache", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.clearCache",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -1157,7 +1138,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebViewHostApi.evaluateJavascript",
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.evaluateJavascript",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -1191,7 +1172,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.getTitle", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getTitle",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -1215,7 +1198,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.scrollTo", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.scrollTo",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -1243,7 +1228,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.scrollBy", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.scrollBy",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -1271,7 +1258,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.getScrollX", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getScrollX",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -1295,7 +1284,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.getScrollY", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getScrollY",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -1319,7 +1310,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.getScrollPosition", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getScrollPosition",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -1345,7 +1338,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebViewHostApi.setWebContentsDebuggingEnabled",
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setWebContentsDebuggingEnabled",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -1369,7 +1362,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.setWebViewClient", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setWebViewClient",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -1398,7 +1393,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebViewHostApi.addJavaScriptChannel",
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.addJavaScriptChannel",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -1428,7 +1423,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebViewHostApi.removeJavaScriptChannel",
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.removeJavaScriptChannel",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -1458,7 +1453,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebViewHostApi.setDownloadListener",
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setDownloadListener",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -1486,7 +1481,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebViewHostApi.setWebChromeClient",
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setWebChromeClient",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -1514,7 +1509,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebViewHostApi.setBackgroundColor",
+ "dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setBackgroundColor",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -1570,7 +1565,9 @@
public void create(@NonNull Long identifierArg, @NonNull Reply<Void> callback) {
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebViewFlutterApi.create", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebViewFlutterApi.create",
+ getCodec());
channel.send(
new ArrayList<Object>(Collections.singletonList(identifierArg)),
channelReply -> callback.reply(null));
@@ -1618,7 +1615,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebSettingsHostApi.create", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.create",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -1645,7 +1644,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebSettingsHostApi.setDomStorageEnabled",
+ "dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setDomStorageEnabled",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -1672,7 +1671,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebSettingsHostApi.setJavaScriptCanOpenWindowsAutomatically",
+ "dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setJavaScriptCanOpenWindowsAutomatically",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -1699,7 +1698,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebSettingsHostApi.setSupportMultipleWindows",
+ "dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setSupportMultipleWindows",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -1726,7 +1725,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebSettingsHostApi.setJavaScriptEnabled",
+ "dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setJavaScriptEnabled",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -1753,7 +1752,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebSettingsHostApi.setUserAgentString",
+ "dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setUserAgentString",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -1781,7 +1780,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebSettingsHostApi.setMediaPlaybackRequiresUserGesture",
+ "dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setMediaPlaybackRequiresUserGesture",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -1808,7 +1807,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebSettingsHostApi.setSupportZoom",
+ "dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setSupportZoom",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -1835,7 +1834,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebSettingsHostApi.setLoadWithOverviewMode",
+ "dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setLoadWithOverviewMode",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -1862,7 +1861,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebSettingsHostApi.setUseWideViewPort",
+ "dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setUseWideViewPort",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -1889,7 +1888,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebSettingsHostApi.setDisplayZoomControls",
+ "dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setDisplayZoomControls",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -1916,7 +1915,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebSettingsHostApi.setBuiltInZoomControls",
+ "dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setBuiltInZoomControls",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -1943,7 +1942,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebSettingsHostApi.setAllowFileAccess",
+ "dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setAllowFileAccess",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -1969,7 +1968,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebSettingsHostApi.setTextZoom", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setTextZoom",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -2012,7 +2013,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.JavaScriptChannelHostApi.create", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.JavaScriptChannelHostApi.create",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -2059,7 +2062,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.JavaScriptChannelFlutterApi.postMessage",
+ "dev.flutter.pigeon.webview_flutter_android.JavaScriptChannelFlutterApi.postMessage",
getCodec());
channel.send(
new ArrayList<Object>(Arrays.asList(instanceIdArg, messageArg)),
@@ -2087,7 +2090,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebViewClientHostApi.create", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebViewClientHostApi.create",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -2111,7 +2116,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebViewClientHostApi.setSynchronousReturnValueForShouldOverrideUrlLoading",
+ "dev.flutter.pigeon.webview_flutter_android.WebViewClientHostApi.setSynchronousReturnValueForShouldOverrideUrlLoading",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -2194,7 +2199,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebViewClientFlutterApi.onPageStarted",
+ "dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onPageStarted",
getCodec());
channel.send(
new ArrayList<Object>(Arrays.asList(instanceIdArg, webViewInstanceIdArg, urlArg)),
@@ -2209,7 +2214,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebViewClientFlutterApi.onPageFinished",
+ "dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onPageFinished",
getCodec());
channel.send(
new ArrayList<Object>(Arrays.asList(instanceIdArg, webViewInstanceIdArg, urlArg)),
@@ -2225,7 +2230,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebViewClientFlutterApi.onReceivedRequestError",
+ "dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onReceivedRequestError",
getCodec());
channel.send(
new ArrayList<Object>(
@@ -2243,7 +2248,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebViewClientFlutterApi.onReceivedError",
+ "dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onReceivedError",
getCodec());
channel.send(
new ArrayList<Object>(
@@ -2264,7 +2269,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebViewClientFlutterApi.requestLoading",
+ "dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.requestLoading",
getCodec());
channel.send(
new ArrayList<Object>(Arrays.asList(instanceIdArg, webViewInstanceIdArg, requestArg)),
@@ -2278,7 +2283,9 @@
@NonNull Reply<Void> callback) {
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebViewClientFlutterApi.urlLoading", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.urlLoading",
+ getCodec());
channel.send(
new ArrayList<Object>(Arrays.asList(instanceIdArg, webViewInstanceIdArg, urlArg)),
channelReply -> callback.reply(null));
@@ -2293,7 +2300,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebViewClientFlutterApi.doUpdateVisitedHistory",
+ "dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.doUpdateVisitedHistory",
getCodec());
channel.send(
new ArrayList<Object>(
@@ -2319,7 +2326,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.DownloadListenerHostApi.create", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.DownloadListenerHostApi.create",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -2370,7 +2379,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.DownloadListenerFlutterApi.onDownloadStart",
+ "dev.flutter.pigeon.webview_flutter_android.DownloadListenerFlutterApi.onDownloadStart",
getCodec());
channel.send(
new ArrayList<Object>(
@@ -2405,7 +2414,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebChromeClientHostApi.create", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebChromeClientHostApi.create",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -2429,7 +2440,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebChromeClientHostApi.setSynchronousReturnValueForOnShowFileChooser",
+ "dev.flutter.pigeon.webview_flutter_android.WebChromeClientHostApi.setSynchronousReturnValueForOnShowFileChooser",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -2476,7 +2487,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.FlutterAssetManagerHostApi.list", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.FlutterAssetManagerHostApi.list",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -2500,7 +2513,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.FlutterAssetManagerHostApi.getAssetFilePathByName",
+ "dev.flutter.pigeon.webview_flutter_android.FlutterAssetManagerHostApi.getAssetFilePathByName",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -2549,7 +2562,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebChromeClientFlutterApi.onProgressChanged",
+ "dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onProgressChanged",
getCodec());
channel.send(
new ArrayList<Object>(Arrays.asList(instanceIdArg, webViewInstanceIdArg, progressArg)),
@@ -2564,7 +2577,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebChromeClientFlutterApi.onShowFileChooser",
+ "dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onShowFileChooser",
getCodec());
channel.send(
new ArrayList<Object>(
@@ -2583,7 +2596,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebChromeClientFlutterApi.onPermissionRequest",
+ "dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onPermissionRequest",
getCodec());
channel.send(
new ArrayList<Object>(Arrays.asList(instanceIdArg, requestInstanceIdArg)),
@@ -2598,7 +2611,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebChromeClientFlutterApi.onGeolocationPermissionsShowPrompt",
+ "dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onGeolocationPermissionsShowPrompt",
getCodec());
channel.send(
new ArrayList<Object>(Arrays.asList(instanceIdArg, paramsInstanceIdArg, originArg)),
@@ -2610,7 +2623,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.WebChromeClientFlutterApi.onGeolocationPermissionsHidePrompt",
+ "dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onGeolocationPermissionsHidePrompt",
getCodec());
channel.send(
new ArrayList<Object>(Collections.singletonList(identifierArg)),
@@ -2635,7 +2648,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebStorageHostApi.create", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebStorageHostApi.create",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -2658,7 +2673,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.WebStorageHostApi.deleteAllData", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.WebStorageHostApi.deleteAllData",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -2680,34 +2697,6 @@
}
}
}
-
- private static class FileChooserParamsFlutterApiCodec extends StandardMessageCodec {
- public static final FileChooserParamsFlutterApiCodec INSTANCE =
- new FileChooserParamsFlutterApiCodec();
-
- private FileChooserParamsFlutterApiCodec() {}
-
- @Override
- protected Object readValueOfType(byte type, @NonNull ByteBuffer buffer) {
- switch (type) {
- case (byte) 128:
- return FileChooserModeEnumData.fromList((ArrayList<Object>) readValue(buffer));
- default:
- return super.readValueOfType(type, buffer);
- }
- }
-
- @Override
- protected void writeValue(@NonNull ByteArrayOutputStream stream, Object value) {
- if (value instanceof FileChooserModeEnumData) {
- stream.write(128);
- writeValue(stream, ((FileChooserModeEnumData) value).toList());
- } else {
- super.writeValue(stream, value);
- }
- }
- }
-
/**
* Handles callbacks methods for the native Java FileChooserParams class.
*
@@ -2730,23 +2719,29 @@
}
/** The codec used by FileChooserParamsFlutterApi. */
static @NonNull MessageCodec<Object> getCodec() {
- return FileChooserParamsFlutterApiCodec.INSTANCE;
+ return new StandardMessageCodec();
}
public void create(
@NonNull Long instanceIdArg,
@NonNull Boolean isCaptureEnabledArg,
@NonNull List<String> acceptTypesArg,
- @NonNull FileChooserModeEnumData modeArg,
+ @NonNull FileChooserMode modeArg,
@Nullable String filenameHintArg,
@NonNull Reply<Void> callback) {
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.FileChooserParamsFlutterApi.create", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.FileChooserParamsFlutterApi.create",
+ getCodec());
channel.send(
new ArrayList<Object>(
Arrays.asList(
- instanceIdArg, isCaptureEnabledArg, acceptTypesArg, modeArg, filenameHintArg)),
+ instanceIdArg,
+ isCaptureEnabledArg,
+ acceptTypesArg,
+ modeArg.index,
+ filenameHintArg)),
channelReply -> callback.reply(null));
}
}
@@ -2780,7 +2775,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.PermissionRequestHostApi.grant", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.PermissionRequestHostApi.grant",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -2805,7 +2802,9 @@
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.PermissionRequestHostApi.deny", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.PermissionRequestHostApi.deny",
+ getCodec());
if (api != null) {
channel.setMessageHandler(
(message, reply) -> {
@@ -2860,7 +2859,9 @@
@NonNull Reply<Void> callback) {
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
- binaryMessenger, "dev.flutter.pigeon.PermissionRequestFlutterApi.create", getCodec());
+ binaryMessenger,
+ "dev.flutter.pigeon.webview_flutter_android.PermissionRequestFlutterApi.create",
+ getCodec());
channel.send(
new ArrayList<Object>(Arrays.asList(instanceIdArg, resourcesArg)),
channelReply -> callback.reply(null));
@@ -2900,7 +2901,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.GeolocationPermissionsCallbackHostApi.invoke",
+ "dev.flutter.pigeon.webview_flutter_android.GeolocationPermissionsCallbackHostApi.invoke",
getCodec());
if (api != null) {
channel.setMessageHandler(
@@ -2961,7 +2962,7 @@
BasicMessageChannel<Object> channel =
new BasicMessageChannel<>(
binaryMessenger,
- "dev.flutter.pigeon.GeolocationPermissionsCallbackFlutterApi.create",
+ "dev.flutter.pigeon.webview_flutter_android.GeolocationPermissionsCallbackFlutterApi.create",
getCodec());
channel.send(
new ArrayList<Object>(Collections.singletonList(instanceIdArg)),
diff --git a/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/FileChooserParamsTest.java b/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/FileChooserParamsTest.java
index 0fb21cc..412b486 100644
--- a/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/FileChooserParamsTest.java
+++ b/packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/FileChooserParamsTest.java
@@ -57,8 +57,8 @@
final long identifier =
Objects.requireNonNull(
instanceManager.getIdentifierForStrongReference(mockFileChooserParams));
- final ArgumentCaptor<GeneratedAndroidWebView.FileChooserModeEnumData> modeCaptor =
- ArgumentCaptor.forClass(GeneratedAndroidWebView.FileChooserModeEnumData.class);
+ final ArgumentCaptor<GeneratedAndroidWebView.FileChooserMode> modeCaptor =
+ ArgumentCaptor.forClass(GeneratedAndroidWebView.FileChooserMode.class);
verify(spyFlutterApi)
.create(
@@ -68,7 +68,6 @@
modeCaptor.capture(),
eq("filenameHint"),
any());
- assertEquals(
- modeCaptor.getValue().getValue(), GeneratedAndroidWebView.FileChooserMode.OPEN_MULTIPLE);
+ assertEquals(modeCaptor.getValue(), GeneratedAndroidWebView.FileChooserMode.OPEN_MULTIPLE);
}
}
diff --git a/packages/webview_flutter/webview_flutter_android/lib/src/android_webview.g.dart b/packages/webview_flutter/webview_flutter_android/lib/src/android_webview.g.dart
index 70473bf..b2a82fd 100644
--- a/packages/webview_flutter/webview_flutter_android/lib/src/android_webview.g.dart
+++ b/packages/webview_flutter/webview_flutter_android/lib/src/android_webview.g.dart
@@ -1,7 +1,7 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Autogenerated from Pigeon (v9.2.5), do not edit directly.
+// Autogenerated from Pigeon (v11.0.1), do not edit directly.
// See also: https://pub.dev/packages/pigeon
// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import
@@ -32,27 +32,6 @@
save,
}
-class FileChooserModeEnumData {
- FileChooserModeEnumData({
- required this.value,
- });
-
- FileChooserMode value;
-
- Object encode() {
- return <Object?>[
- value.index,
- ];
- }
-
- static FileChooserModeEnumData decode(Object result) {
- result as List<Object?>;
- return FileChooserModeEnumData(
- value: FileChooserMode.values[result[0]! as int],
- );
- }
-}
-
class WebResourceRequestData {
WebResourceRequestData({
required this.url,
@@ -168,7 +147,8 @@
/// This is typically only used after a hot restart.
Future<void> clear() async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.InstanceManagerHostApi.clear', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.InstanceManagerHostApi.clear',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel.send(null) as List<Object?>?;
if (replyList == null) {
@@ -205,7 +185,8 @@
Future<void> dispose(int arg_identifier) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.JavaObjectHostApi.dispose', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.JavaObjectHostApi.dispose',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_identifier]) as List<Object?>?;
@@ -238,18 +219,19 @@
{BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.JavaObjectFlutterApi.dispose', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.JavaObjectFlutterApi.dispose',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
channel.setMessageHandler(null);
} else {
channel.setMessageHandler((Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.JavaObjectFlutterApi.dispose was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.JavaObjectFlutterApi.dispose was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_identifier = (args[0] as int?);
assert(arg_identifier != null,
- 'Argument for dev.flutter.pigeon.JavaObjectFlutterApi.dispose was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.JavaObjectFlutterApi.dispose was null, expected non-null int.');
api.dispose(arg_identifier!);
return;
});
@@ -276,7 +258,8 @@
/// Handles attaching `CookieManager.instance` to a native instance.
Future<void> attachInstance(int arg_instanceIdentifier) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.CookieManagerHostApi.attachInstance', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.attachInstance',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceIdentifier]) as List<Object?>?;
@@ -300,7 +283,8 @@
Future<void> setCookie(
int arg_identifier, String arg_url, String arg_value) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.CookieManagerHostApi.setCookie', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.setCookie',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
.send(<Object?>[arg_identifier, arg_url, arg_value]) as List<Object?>?;
@@ -323,7 +307,8 @@
/// Handles Dart method `CookieManager.removeAllCookies`.
Future<bool> removeAllCookies(int arg_identifier) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.CookieManagerHostApi.removeAllCookies', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.removeAllCookies',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_identifier]) as List<Object?>?;
@@ -352,7 +337,7 @@
Future<void> setAcceptThirdPartyCookies(
int arg_identifier, int arg_webViewIdentifier, bool arg_accept) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.CookieManagerHostApi.setAcceptThirdPartyCookies',
+ 'dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.setAcceptThirdPartyCookies',
codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
@@ -377,7 +362,6 @@
class _WebViewHostApiCodec extends StandardMessageCodec {
const _WebViewHostApiCodec();
-
@override
void writeValue(WriteBuffer buffer, Object? value) {
if (value is WebViewPoint) {
@@ -411,7 +395,8 @@
Future<void> create(int arg_instanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.create', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.create',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId]) as List<Object?>?;
@@ -434,7 +419,8 @@
Future<void> loadData(int arg_instanceId, String arg_data,
String? arg_mimeType, String? arg_encoding) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.loadData', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.loadData',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel.send(
<Object?>[arg_instanceId, arg_data, arg_mimeType, arg_encoding])
@@ -463,7 +449,8 @@
String? arg_encoding,
String? arg_historyUrl) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.loadDataWithBaseUrl', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.loadDataWithBaseUrl',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel.send(<Object?>[
arg_instanceId,
@@ -492,7 +479,8 @@
Future<void> loadUrl(int arg_instanceId, String arg_url,
Map<String?, String?> arg_headers) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.loadUrl', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.loadUrl',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId, arg_url, arg_headers])
@@ -516,7 +504,8 @@
Future<void> postUrl(
int arg_instanceId, String arg_url, Uint8List arg_data) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.postUrl', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.postUrl',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
.send(<Object?>[arg_instanceId, arg_url, arg_data]) as List<Object?>?;
@@ -538,7 +527,8 @@
Future<String?> getUrl(int arg_instanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.getUrl', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getUrl',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId]) as List<Object?>?;
@@ -560,7 +550,8 @@
Future<bool> canGoBack(int arg_instanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.canGoBack', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.canGoBack',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId]) as List<Object?>?;
@@ -587,7 +578,8 @@
Future<bool> canGoForward(int arg_instanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.canGoForward', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.canGoForward',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId]) as List<Object?>?;
@@ -614,7 +606,8 @@
Future<void> goBack(int arg_instanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.goBack', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.goBack',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId]) as List<Object?>?;
@@ -636,7 +629,8 @@
Future<void> goForward(int arg_instanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.goForward', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.goForward',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId]) as List<Object?>?;
@@ -658,7 +652,8 @@
Future<void> reload(int arg_instanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.reload', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.reload',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId]) as List<Object?>?;
@@ -680,7 +675,8 @@
Future<void> clearCache(int arg_instanceId, bool arg_includeDiskFiles) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.clearCache', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.clearCache',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId, arg_includeDiskFiles])
@@ -704,7 +700,8 @@
Future<String?> evaluateJavascript(
int arg_instanceId, String arg_javascriptString) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.evaluateJavascript', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.evaluateJavascript',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId, arg_javascriptString])
@@ -727,7 +724,8 @@
Future<String?> getTitle(int arg_instanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.getTitle', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getTitle',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId]) as List<Object?>?;
@@ -749,7 +747,8 @@
Future<void> scrollTo(int arg_instanceId, int arg_x, int arg_y) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.scrollTo', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.scrollTo',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
.send(<Object?>[arg_instanceId, arg_x, arg_y]) as List<Object?>?;
@@ -771,7 +770,8 @@
Future<void> scrollBy(int arg_instanceId, int arg_x, int arg_y) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.scrollBy', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.scrollBy',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
.send(<Object?>[arg_instanceId, arg_x, arg_y]) as List<Object?>?;
@@ -793,7 +793,8 @@
Future<int> getScrollX(int arg_instanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.getScrollX', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getScrollX',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId]) as List<Object?>?;
@@ -820,7 +821,8 @@
Future<int> getScrollY(int arg_instanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.getScrollY', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getScrollY',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId]) as List<Object?>?;
@@ -847,7 +849,8 @@
Future<WebViewPoint> getScrollPosition(int arg_instanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.getScrollPosition', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getScrollPosition',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId]) as List<Object?>?;
@@ -874,7 +877,7 @@
Future<void> setWebContentsDebuggingEnabled(bool arg_enabled) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.setWebContentsDebuggingEnabled',
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setWebContentsDebuggingEnabled',
codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
@@ -898,7 +901,8 @@
Future<void> setWebViewClient(
int arg_instanceId, int arg_webViewClientInstanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.setWebViewClient', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setWebViewClient',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
.send(<Object?>[arg_instanceId, arg_webViewClientInstanceId])
@@ -922,7 +926,8 @@
Future<void> addJavaScriptChannel(
int arg_instanceId, int arg_javaScriptChannelInstanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.addJavaScriptChannel', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.addJavaScriptChannel',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
.send(<Object?>[arg_instanceId, arg_javaScriptChannelInstanceId])
@@ -946,7 +951,8 @@
Future<void> removeJavaScriptChannel(
int arg_instanceId, int arg_javaScriptChannelInstanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.removeJavaScriptChannel', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.removeJavaScriptChannel',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
.send(<Object?>[arg_instanceId, arg_javaScriptChannelInstanceId])
@@ -970,7 +976,8 @@
Future<void> setDownloadListener(
int arg_instanceId, int? arg_listenerInstanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.setDownloadListener', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setDownloadListener',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId, arg_listenerInstanceId])
@@ -994,7 +1001,8 @@
Future<void> setWebChromeClient(
int arg_instanceId, int? arg_clientInstanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.setWebChromeClient', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setWebChromeClient',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId, arg_clientInstanceId])
@@ -1017,7 +1025,8 @@
Future<void> setBackgroundColor(int arg_instanceId, int arg_color) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.setBackgroundColor', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setBackgroundColor',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
.send(<Object?>[arg_instanceId, arg_color]) as List<Object?>?;
@@ -1055,18 +1064,19 @@
{BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewFlutterApi.create', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewFlutterApi.create',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
channel.setMessageHandler(null);
} else {
channel.setMessageHandler((Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewFlutterApi.create was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewFlutterApi.create was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_identifier = (args[0] as int?);
assert(arg_identifier != null,
- 'Argument for dev.flutter.pigeon.WebViewFlutterApi.create was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewFlutterApi.create was null, expected non-null int.');
api.create(arg_identifier!);
return;
});
@@ -1087,7 +1097,8 @@
Future<void> create(int arg_instanceId, int arg_webViewInstanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.create', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.create',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId, arg_webViewInstanceId])
@@ -1110,7 +1121,8 @@
Future<void> setDomStorageEnabled(int arg_instanceId, bool arg_flag) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setDomStorageEnabled', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setDomStorageEnabled',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
.send(<Object?>[arg_instanceId, arg_flag]) as List<Object?>?;
@@ -1133,7 +1145,7 @@
Future<void> setJavaScriptCanOpenWindowsAutomatically(
int arg_instanceId, bool arg_flag) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setJavaScriptCanOpenWindowsAutomatically',
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setJavaScriptCanOpenWindowsAutomatically',
codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
@@ -1157,7 +1169,7 @@
Future<void> setSupportMultipleWindows(
int arg_instanceId, bool arg_support) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setSupportMultipleWindows',
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setSupportMultipleWindows',
codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
@@ -1180,7 +1192,8 @@
Future<void> setJavaScriptEnabled(int arg_instanceId, bool arg_flag) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setJavaScriptEnabled', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setJavaScriptEnabled',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
.send(<Object?>[arg_instanceId, arg_flag]) as List<Object?>?;
@@ -1203,7 +1216,8 @@
Future<void> setUserAgentString(
int arg_instanceId, String? arg_userAgentString) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setUserAgentString', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setUserAgentString',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
.send(<Object?>[arg_instanceId, arg_userAgentString]) as List<Object?>?;
@@ -1226,7 +1240,7 @@
Future<void> setMediaPlaybackRequiresUserGesture(
int arg_instanceId, bool arg_require) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setMediaPlaybackRequiresUserGesture',
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setMediaPlaybackRequiresUserGesture',
codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
@@ -1249,7 +1263,8 @@
Future<void> setSupportZoom(int arg_instanceId, bool arg_support) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setSupportZoom', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setSupportZoom',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
.send(<Object?>[arg_instanceId, arg_support]) as List<Object?>?;
@@ -1272,7 +1287,8 @@
Future<void> setLoadWithOverviewMode(
int arg_instanceId, bool arg_overview) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setLoadWithOverviewMode', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setLoadWithOverviewMode',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
.send(<Object?>[arg_instanceId, arg_overview]) as List<Object?>?;
@@ -1294,7 +1310,8 @@
Future<void> setUseWideViewPort(int arg_instanceId, bool arg_use) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setUseWideViewPort', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setUseWideViewPort',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
.send(<Object?>[arg_instanceId, arg_use]) as List<Object?>?;
@@ -1317,7 +1334,8 @@
Future<void> setDisplayZoomControls(
int arg_instanceId, bool arg_enabled) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setDisplayZoomControls', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setDisplayZoomControls',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
.send(<Object?>[arg_instanceId, arg_enabled]) as List<Object?>?;
@@ -1340,7 +1358,8 @@
Future<void> setBuiltInZoomControls(
int arg_instanceId, bool arg_enabled) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setBuiltInZoomControls', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setBuiltInZoomControls',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
.send(<Object?>[arg_instanceId, arg_enabled]) as List<Object?>?;
@@ -1362,7 +1381,8 @@
Future<void> setAllowFileAccess(int arg_instanceId, bool arg_enabled) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setAllowFileAccess', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setAllowFileAccess',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
.send(<Object?>[arg_instanceId, arg_enabled]) as List<Object?>?;
@@ -1384,7 +1404,8 @@
Future<void> setTextZoom(int arg_instanceId, int arg_textZoom) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setTextZoom', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setTextZoom',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
.send(<Object?>[arg_instanceId, arg_textZoom]) as List<Object?>?;
@@ -1417,7 +1438,8 @@
Future<void> create(int arg_instanceId, String arg_channelName) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.JavaScriptChannelHostApi.create', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.JavaScriptChannelHostApi.create',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
.send(<Object?>[arg_instanceId, arg_channelName]) as List<Object?>?;
@@ -1447,21 +1469,22 @@
{BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.JavaScriptChannelFlutterApi.postMessage', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.JavaScriptChannelFlutterApi.postMessage',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
channel.setMessageHandler(null);
} else {
channel.setMessageHandler((Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.JavaScriptChannelFlutterApi.postMessage was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.JavaScriptChannelFlutterApi.postMessage was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.JavaScriptChannelFlutterApi.postMessage was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.JavaScriptChannelFlutterApi.postMessage was null, expected non-null int.');
final String? arg_message = (args[1] as String?);
assert(arg_message != null,
- 'Argument for dev.flutter.pigeon.JavaScriptChannelFlutterApi.postMessage was null, expected non-null String.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.JavaScriptChannelFlutterApi.postMessage was null, expected non-null String.');
api.postMessage(arg_instanceId!, arg_message!);
return;
});
@@ -1482,7 +1505,8 @@
Future<void> create(int arg_instanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewClientHostApi.create', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewClientHostApi.create',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId]) as List<Object?>?;
@@ -1505,7 +1529,7 @@
Future<void> setSynchronousReturnValueForShouldOverrideUrlLoading(
int arg_instanceId, bool arg_value) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewClientHostApi.setSynchronousReturnValueForShouldOverrideUrlLoading',
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewClientHostApi.setSynchronousReturnValueForShouldOverrideUrlLoading',
codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
@@ -1529,7 +1553,6 @@
class _WebViewClientFlutterApiCodec extends StandardMessageCodec {
const _WebViewClientFlutterApiCodec();
-
@override
void writeValue(WriteBuffer buffer, Object? value) {
if (value is WebResourceErrorData) {
@@ -1581,57 +1604,7 @@
{BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewClientFlutterApi.onPageStarted', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- channel.setMessageHandler(null);
- } else {
- channel.setMessageHandler((Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.onPageStarted was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.onPageStarted was null, expected non-null int.');
- final int? arg_webViewInstanceId = (args[1] as int?);
- assert(arg_webViewInstanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.onPageStarted was null, expected non-null int.');
- final String? arg_url = (args[2] as String?);
- assert(arg_url != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.onPageStarted was null, expected non-null String.');
- api.onPageStarted(arg_instanceId!, arg_webViewInstanceId!, arg_url!);
- return;
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewClientFlutterApi.onPageFinished', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- channel.setMessageHandler(null);
- } else {
- channel.setMessageHandler((Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.onPageFinished was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.onPageFinished was null, expected non-null int.');
- final int? arg_webViewInstanceId = (args[1] as int?);
- assert(arg_webViewInstanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.onPageFinished was null, expected non-null int.');
- final String? arg_url = (args[2] as String?);
- assert(arg_url != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.onPageFinished was null, expected non-null String.');
- api.onPageFinished(arg_instanceId!, arg_webViewInstanceId!, arg_url!);
- return;
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewClientFlutterApi.onReceivedRequestError',
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onPageStarted',
codec,
binaryMessenger: binaryMessenger);
if (api == null) {
@@ -1639,22 +1612,74 @@
} else {
channel.setMessageHandler((Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.onReceivedRequestError was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onPageStarted was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.onReceivedRequestError was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onPageStarted was null, expected non-null int.');
final int? arg_webViewInstanceId = (args[1] as int?);
assert(arg_webViewInstanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.onReceivedRequestError was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onPageStarted was null, expected non-null int.');
+ final String? arg_url = (args[2] as String?);
+ assert(arg_url != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onPageStarted was null, expected non-null String.');
+ api.onPageStarted(arg_instanceId!, arg_webViewInstanceId!, arg_url!);
+ return;
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onPageFinished',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ channel.setMessageHandler(null);
+ } else {
+ channel.setMessageHandler((Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onPageFinished was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onPageFinished was null, expected non-null int.');
+ final int? arg_webViewInstanceId = (args[1] as int?);
+ assert(arg_webViewInstanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onPageFinished was null, expected non-null int.');
+ final String? arg_url = (args[2] as String?);
+ assert(arg_url != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onPageFinished was null, expected non-null String.');
+ api.onPageFinished(arg_instanceId!, arg_webViewInstanceId!, arg_url!);
+ return;
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onReceivedRequestError',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ channel.setMessageHandler(null);
+ } else {
+ channel.setMessageHandler((Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onReceivedRequestError was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onReceivedRequestError was null, expected non-null int.');
+ final int? arg_webViewInstanceId = (args[1] as int?);
+ assert(arg_webViewInstanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onReceivedRequestError was null, expected non-null int.');
final WebResourceRequestData? arg_request =
(args[2] as WebResourceRequestData?);
assert(arg_request != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.onReceivedRequestError was null, expected non-null WebResourceRequestData.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onReceivedRequestError was null, expected non-null WebResourceRequestData.');
final WebResourceErrorData? arg_error =
(args[3] as WebResourceErrorData?);
assert(arg_error != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.onReceivedRequestError was null, expected non-null WebResourceErrorData.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onReceivedRequestError was null, expected non-null WebResourceErrorData.');
api.onReceivedRequestError(arg_instanceId!, arg_webViewInstanceId!,
arg_request!, arg_error!);
return;
@@ -1663,30 +1688,31 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewClientFlutterApi.onReceivedError', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onReceivedError',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
channel.setMessageHandler(null);
} else {
channel.setMessageHandler((Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.onReceivedError was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onReceivedError was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.onReceivedError was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onReceivedError was null, expected non-null int.');
final int? arg_webViewInstanceId = (args[1] as int?);
assert(arg_webViewInstanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.onReceivedError was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onReceivedError was null, expected non-null int.');
final int? arg_errorCode = (args[2] as int?);
assert(arg_errorCode != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.onReceivedError was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onReceivedError was null, expected non-null int.');
final String? arg_description = (args[3] as String?);
assert(arg_description != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.onReceivedError was null, expected non-null String.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onReceivedError was null, expected non-null String.');
final String? arg_failingUrl = (args[4] as String?);
assert(arg_failingUrl != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.onReceivedError was null, expected non-null String.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.onReceivedError was null, expected non-null String.');
api.onReceivedError(arg_instanceId!, arg_webViewInstanceId!,
arg_errorCode!, arg_description!, arg_failingUrl!);
return;
@@ -1695,25 +1721,26 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewClientFlutterApi.requestLoading', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.requestLoading',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
channel.setMessageHandler(null);
} else {
channel.setMessageHandler((Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.requestLoading was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.requestLoading was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.requestLoading was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.requestLoading was null, expected non-null int.');
final int? arg_webViewInstanceId = (args[1] as int?);
assert(arg_webViewInstanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.requestLoading was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.requestLoading was null, expected non-null int.');
final WebResourceRequestData? arg_request =
(args[2] as WebResourceRequestData?);
assert(arg_request != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.requestLoading was null, expected non-null WebResourceRequestData.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.requestLoading was null, expected non-null WebResourceRequestData.');
api.requestLoading(
arg_instanceId!, arg_webViewInstanceId!, arg_request!);
return;
@@ -1722,32 +1749,7 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewClientFlutterApi.urlLoading', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- channel.setMessageHandler(null);
- } else {
- channel.setMessageHandler((Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.urlLoading was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.urlLoading was null, expected non-null int.');
- final int? arg_webViewInstanceId = (args[1] as int?);
- assert(arg_webViewInstanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.urlLoading was null, expected non-null int.');
- final String? arg_url = (args[2] as String?);
- assert(arg_url != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.urlLoading was null, expected non-null String.');
- api.urlLoading(arg_instanceId!, arg_webViewInstanceId!, arg_url!);
- return;
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewClientFlutterApi.doUpdateVisitedHistory',
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.urlLoading',
codec,
binaryMessenger: binaryMessenger);
if (api == null) {
@@ -1755,20 +1757,46 @@
} else {
channel.setMessageHandler((Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.doUpdateVisitedHistory was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.urlLoading was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.doUpdateVisitedHistory was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.urlLoading was null, expected non-null int.');
final int? arg_webViewInstanceId = (args[1] as int?);
assert(arg_webViewInstanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.doUpdateVisitedHistory was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.urlLoading was null, expected non-null int.');
final String? arg_url = (args[2] as String?);
assert(arg_url != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.doUpdateVisitedHistory was null, expected non-null String.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.urlLoading was null, expected non-null String.');
+ api.urlLoading(arg_instanceId!, arg_webViewInstanceId!, arg_url!);
+ return;
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.doUpdateVisitedHistory',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ channel.setMessageHandler(null);
+ } else {
+ channel.setMessageHandler((Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.doUpdateVisitedHistory was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.doUpdateVisitedHistory was null, expected non-null int.');
+ final int? arg_webViewInstanceId = (args[1] as int?);
+ assert(arg_webViewInstanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.doUpdateVisitedHistory was null, expected non-null int.');
+ final String? arg_url = (args[2] as String?);
+ assert(arg_url != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.doUpdateVisitedHistory was null, expected non-null String.');
final bool? arg_isReload = (args[3] as bool?);
assert(arg_isReload != null,
- 'Argument for dev.flutter.pigeon.WebViewClientFlutterApi.doUpdateVisitedHistory was null, expected non-null bool.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientFlutterApi.doUpdateVisitedHistory was null, expected non-null bool.');
api.doUpdateVisitedHistory(
arg_instanceId!, arg_webViewInstanceId!, arg_url!, arg_isReload!);
return;
@@ -1790,7 +1818,8 @@
Future<void> create(int arg_instanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.DownloadListenerHostApi.create', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.DownloadListenerHostApi.create',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId]) as List<Object?>?;
@@ -1821,7 +1850,7 @@
{BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.DownloadListenerFlutterApi.onDownloadStart',
+ 'dev.flutter.pigeon.webview_flutter_android.DownloadListenerFlutterApi.onDownloadStart',
codec,
binaryMessenger: binaryMessenger);
if (api == null) {
@@ -1829,26 +1858,26 @@
} else {
channel.setMessageHandler((Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.DownloadListenerFlutterApi.onDownloadStart was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.DownloadListenerFlutterApi.onDownloadStart was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.DownloadListenerFlutterApi.onDownloadStart was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.DownloadListenerFlutterApi.onDownloadStart was null, expected non-null int.');
final String? arg_url = (args[1] as String?);
assert(arg_url != null,
- 'Argument for dev.flutter.pigeon.DownloadListenerFlutterApi.onDownloadStart was null, expected non-null String.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.DownloadListenerFlutterApi.onDownloadStart was null, expected non-null String.');
final String? arg_userAgent = (args[2] as String?);
assert(arg_userAgent != null,
- 'Argument for dev.flutter.pigeon.DownloadListenerFlutterApi.onDownloadStart was null, expected non-null String.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.DownloadListenerFlutterApi.onDownloadStart was null, expected non-null String.');
final String? arg_contentDisposition = (args[3] as String?);
assert(arg_contentDisposition != null,
- 'Argument for dev.flutter.pigeon.DownloadListenerFlutterApi.onDownloadStart was null, expected non-null String.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.DownloadListenerFlutterApi.onDownloadStart was null, expected non-null String.');
final String? arg_mimetype = (args[4] as String?);
assert(arg_mimetype != null,
- 'Argument for dev.flutter.pigeon.DownloadListenerFlutterApi.onDownloadStart was null, expected non-null String.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.DownloadListenerFlutterApi.onDownloadStart was null, expected non-null String.');
final int? arg_contentLength = (args[5] as int?);
assert(arg_contentLength != null,
- 'Argument for dev.flutter.pigeon.DownloadListenerFlutterApi.onDownloadStart was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.DownloadListenerFlutterApi.onDownloadStart was null, expected non-null int.');
api.onDownloadStart(arg_instanceId!, arg_url!, arg_userAgent!,
arg_contentDisposition!, arg_mimetype!, arg_contentLength!);
return;
@@ -1870,7 +1899,8 @@
Future<void> create(int arg_instanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebChromeClientHostApi.create', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebChromeClientHostApi.create',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId]) as List<Object?>?;
@@ -1893,7 +1923,7 @@
Future<void> setSynchronousReturnValueForOnShowFileChooser(
int arg_instanceId, bool arg_value) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebChromeClientHostApi.setSynchronousReturnValueForOnShowFileChooser',
+ 'dev.flutter.pigeon.webview_flutter_android.WebChromeClientHostApi.setSynchronousReturnValueForOnShowFileChooser',
codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
@@ -1927,7 +1957,8 @@
Future<List<String?>> list(String arg_path) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.FlutterAssetManagerHostApi.list', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.FlutterAssetManagerHostApi.list',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_path]) as List<Object?>?;
@@ -1954,7 +1985,7 @@
Future<String> getAssetFilePathByName(String arg_name) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.FlutterAssetManagerHostApi.getAssetFilePathByName',
+ 'dev.flutter.pigeon.webview_flutter_android.FlutterAssetManagerHostApi.getAssetFilePathByName',
codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
@@ -2003,7 +2034,7 @@
{BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebChromeClientFlutterApi.onProgressChanged',
+ 'dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onProgressChanged',
codec,
binaryMessenger: binaryMessenger);
if (api == null) {
@@ -2011,17 +2042,17 @@
} else {
channel.setMessageHandler((Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebChromeClientFlutterApi.onProgressChanged was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onProgressChanged was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebChromeClientFlutterApi.onProgressChanged was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onProgressChanged was null, expected non-null int.');
final int? arg_webViewInstanceId = (args[1] as int?);
assert(arg_webViewInstanceId != null,
- 'Argument for dev.flutter.pigeon.WebChromeClientFlutterApi.onProgressChanged was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onProgressChanged was null, expected non-null int.');
final int? arg_progress = (args[2] as int?);
assert(arg_progress != null,
- 'Argument for dev.flutter.pigeon.WebChromeClientFlutterApi.onProgressChanged was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onProgressChanged was null, expected non-null int.');
api.onProgressChanged(
arg_instanceId!, arg_webViewInstanceId!, arg_progress!);
return;
@@ -2030,7 +2061,7 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebChromeClientFlutterApi.onShowFileChooser',
+ 'dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onShowFileChooser',
codec,
binaryMessenger: binaryMessenger);
if (api == null) {
@@ -2038,17 +2069,17 @@
} else {
channel.setMessageHandler((Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebChromeClientFlutterApi.onShowFileChooser was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onShowFileChooser was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebChromeClientFlutterApi.onShowFileChooser was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onShowFileChooser was null, expected non-null int.');
final int? arg_webViewInstanceId = (args[1] as int?);
assert(arg_webViewInstanceId != null,
- 'Argument for dev.flutter.pigeon.WebChromeClientFlutterApi.onShowFileChooser was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onShowFileChooser was null, expected non-null int.');
final int? arg_paramsInstanceId = (args[2] as int?);
assert(arg_paramsInstanceId != null,
- 'Argument for dev.flutter.pigeon.WebChromeClientFlutterApi.onShowFileChooser was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onShowFileChooser was null, expected non-null int.');
final List<String?> output = await api.onShowFileChooser(
arg_instanceId!, arg_webViewInstanceId!, arg_paramsInstanceId!);
return output;
@@ -2057,7 +2088,7 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebChromeClientFlutterApi.onPermissionRequest',
+ 'dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onPermissionRequest',
codec,
binaryMessenger: binaryMessenger);
if (api == null) {
@@ -2065,14 +2096,14 @@
} else {
channel.setMessageHandler((Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebChromeClientFlutterApi.onPermissionRequest was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onPermissionRequest was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebChromeClientFlutterApi.onPermissionRequest was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onPermissionRequest was null, expected non-null int.');
final int? arg_requestInstanceId = (args[1] as int?);
assert(arg_requestInstanceId != null,
- 'Argument for dev.flutter.pigeon.WebChromeClientFlutterApi.onPermissionRequest was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onPermissionRequest was null, expected non-null int.');
api.onPermissionRequest(arg_instanceId!, arg_requestInstanceId!);
return;
});
@@ -2080,7 +2111,7 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebChromeClientFlutterApi.onGeolocationPermissionsShowPrompt',
+ 'dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onGeolocationPermissionsShowPrompt',
codec,
binaryMessenger: binaryMessenger);
if (api == null) {
@@ -2088,17 +2119,17 @@
} else {
channel.setMessageHandler((Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebChromeClientFlutterApi.onGeolocationPermissionsShowPrompt was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onGeolocationPermissionsShowPrompt was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebChromeClientFlutterApi.onGeolocationPermissionsShowPrompt was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onGeolocationPermissionsShowPrompt was null, expected non-null int.');
final int? arg_paramsInstanceId = (args[1] as int?);
assert(arg_paramsInstanceId != null,
- 'Argument for dev.flutter.pigeon.WebChromeClientFlutterApi.onGeolocationPermissionsShowPrompt was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onGeolocationPermissionsShowPrompt was null, expected non-null int.');
final String? arg_origin = (args[2] as String?);
assert(arg_origin != null,
- 'Argument for dev.flutter.pigeon.WebChromeClientFlutterApi.onGeolocationPermissionsShowPrompt was null, expected non-null String.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onGeolocationPermissionsShowPrompt was null, expected non-null String.');
api.onGeolocationPermissionsShowPrompt(
arg_instanceId!, arg_paramsInstanceId!, arg_origin!);
return;
@@ -2107,7 +2138,7 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebChromeClientFlutterApi.onGeolocationPermissionsHidePrompt',
+ 'dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onGeolocationPermissionsHidePrompt',
codec,
binaryMessenger: binaryMessenger);
if (api == null) {
@@ -2115,11 +2146,11 @@
} else {
channel.setMessageHandler((Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebChromeClientFlutterApi.onGeolocationPermissionsHidePrompt was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onGeolocationPermissionsHidePrompt was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_identifier = (args[0] as int?);
assert(arg_identifier != null,
- 'Argument for dev.flutter.pigeon.WebChromeClientFlutterApi.onGeolocationPermissionsHidePrompt was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebChromeClientFlutterApi.onGeolocationPermissionsHidePrompt was null, expected non-null int.');
api.onGeolocationPermissionsHidePrompt(arg_identifier!);
return;
});
@@ -2140,7 +2171,8 @@
Future<void> create(int arg_instanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebStorageHostApi.create', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebStorageHostApi.create',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId]) as List<Object?>?;
@@ -2162,7 +2194,8 @@
Future<void> deleteAllData(int arg_instanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebStorageHostApi.deleteAllData', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebStorageHostApi.deleteAllData',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId]) as List<Object?>?;
@@ -2183,67 +2216,43 @@
}
}
-class _FileChooserParamsFlutterApiCodec extends StandardMessageCodec {
- const _FileChooserParamsFlutterApiCodec();
-
- @override
- void writeValue(WriteBuffer buffer, Object? value) {
- if (value is FileChooserModeEnumData) {
- buffer.putUint8(128);
- writeValue(buffer, value.encode());
- } else {
- super.writeValue(buffer, value);
- }
- }
-
- @override
- Object? readValueOfType(int type, ReadBuffer buffer) {
- switch (type) {
- case 128:
- return FileChooserModeEnumData.decode(readValue(buffer)!);
- default:
- return super.readValueOfType(type, buffer);
- }
- }
-}
-
/// Handles callbacks methods for the native Java FileChooserParams class.
///
/// See https://developer.android.com/reference/android/webkit/WebChromeClient.FileChooserParams.
abstract class FileChooserParamsFlutterApi {
- static const MessageCodec<Object?> codec =
- _FileChooserParamsFlutterApiCodec();
+ static const MessageCodec<Object?> codec = StandardMessageCodec();
void create(int instanceId, bool isCaptureEnabled, List<String?> acceptTypes,
- FileChooserModeEnumData mode, String? filenameHint);
+ FileChooserMode mode, String? filenameHint);
static void setup(FileChooserParamsFlutterApi? api,
{BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.FileChooserParamsFlutterApi.create', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.FileChooserParamsFlutterApi.create',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
channel.setMessageHandler(null);
} else {
channel.setMessageHandler((Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.FileChooserParamsFlutterApi.create was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.FileChooserParamsFlutterApi.create was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.FileChooserParamsFlutterApi.create was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.FileChooserParamsFlutterApi.create was null, expected non-null int.');
final bool? arg_isCaptureEnabled = (args[1] as bool?);
assert(arg_isCaptureEnabled != null,
- 'Argument for dev.flutter.pigeon.FileChooserParamsFlutterApi.create was null, expected non-null bool.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.FileChooserParamsFlutterApi.create was null, expected non-null bool.');
final List<String?>? arg_acceptTypes =
(args[2] as List<Object?>?)?.cast<String?>();
assert(arg_acceptTypes != null,
- 'Argument for dev.flutter.pigeon.FileChooserParamsFlutterApi.create was null, expected non-null List<String?>.');
- final FileChooserModeEnumData? arg_mode =
- (args[3] as FileChooserModeEnumData?);
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.FileChooserParamsFlutterApi.create was null, expected non-null List<String?>.');
+ final FileChooserMode? arg_mode =
+ args[3] == null ? null : FileChooserMode.values[args[3]! as int];
assert(arg_mode != null,
- 'Argument for dev.flutter.pigeon.FileChooserParamsFlutterApi.create was null, expected non-null FileChooserModeEnumData.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.FileChooserParamsFlutterApi.create was null, expected non-null FileChooserMode.');
final String? arg_filenameHint = (args[4] as String?);
api.create(arg_instanceId!, arg_isCaptureEnabled!, arg_acceptTypes!,
arg_mode!, arg_filenameHint);
@@ -2274,7 +2283,8 @@
/// Handles Dart method `PermissionRequest.grant`.
Future<void> grant(int arg_instanceId, List<String?> arg_resources) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.PermissionRequestHostApi.grant', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.PermissionRequestHostApi.grant',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
.send(<Object?>[arg_instanceId, arg_resources]) as List<Object?>?;
@@ -2297,7 +2307,8 @@
/// Handles Dart method `PermissionRequest.deny`.
Future<void> deny(int arg_instanceId) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.PermissionRequestHostApi.deny', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.PermissionRequestHostApi.deny',
+ codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList =
await channel.send(<Object?>[arg_instanceId]) as List<Object?>?;
@@ -2335,22 +2346,23 @@
{BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.PermissionRequestFlutterApi.create', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.PermissionRequestFlutterApi.create',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
channel.setMessageHandler(null);
} else {
channel.setMessageHandler((Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.PermissionRequestFlutterApi.create was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.PermissionRequestFlutterApi.create was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.PermissionRequestFlutterApi.create was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.PermissionRequestFlutterApi.create was null, expected non-null int.');
final List<String?>? arg_resources =
(args[1] as List<Object?>?)?.cast<String?>();
assert(arg_resources != null,
- 'Argument for dev.flutter.pigeon.PermissionRequestFlutterApi.create was null, expected non-null List<String?>.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.PermissionRequestFlutterApi.create was null, expected non-null List<String?>.');
api.create(arg_instanceId!, arg_resources!);
return;
});
@@ -2380,7 +2392,7 @@
Future<void> invoke(int arg_instanceId, String arg_origin, bool arg_allow,
bool arg_retain) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.GeolocationPermissionsCallbackHostApi.invoke',
+ 'dev.flutter.pigeon.webview_flutter_android.GeolocationPermissionsCallbackHostApi.invoke',
codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel
@@ -2420,7 +2432,7 @@
{BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.GeolocationPermissionsCallbackFlutterApi.create',
+ 'dev.flutter.pigeon.webview_flutter_android.GeolocationPermissionsCallbackFlutterApi.create',
codec,
binaryMessenger: binaryMessenger);
if (api == null) {
@@ -2428,11 +2440,11 @@
} else {
channel.setMessageHandler((Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.GeolocationPermissionsCallbackFlutterApi.create was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.GeolocationPermissionsCallbackFlutterApi.create was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.GeolocationPermissionsCallbackFlutterApi.create was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.GeolocationPermissionsCallbackFlutterApi.create was null, expected non-null int.');
api.create(arg_instanceId!);
return;
});
diff --git a/packages/webview_flutter/webview_flutter_android/lib/src/android_webview_api_impls.dart b/packages/webview_flutter/webview_flutter_android/lib/src/android_webview_api_impls.dart
index 74e116d..a2fa1da 100644
--- a/packages/webview_flutter/webview_flutter_android/lib/src/android_webview_api_impls.dart
+++ b/packages/webview_flutter/webview_flutter_android/lib/src/android_webview_api_impls.dart
@@ -1025,14 +1025,14 @@
int instanceId,
bool isCaptureEnabled,
List<String?> acceptTypes,
- FileChooserModeEnumData mode,
+ FileChooserMode mode,
String? filenameHint,
) {
instanceManager.addHostCreatedInstance(
FileChooserParams.detached(
isCaptureEnabled: isCaptureEnabled,
acceptTypes: acceptTypes.cast(),
- mode: mode.value,
+ mode: mode,
filenameHint: filenameHint,
binaryMessenger: binaryMessenger,
instanceManager: instanceManager,
diff --git a/packages/webview_flutter/webview_flutter_android/pigeons/android_webview.dart b/packages/webview_flutter/webview_flutter_android/pigeons/android_webview.dart
index f75eb32..0a43f89 100644
--- a/packages/webview_flutter/webview_flutter_android/pigeons/android_webview.dart
+++ b/packages/webview_flutter/webview_flutter_android/pigeons/android_webview.dart
@@ -57,12 +57,6 @@
save,
}
-// TODO(bparrishMines): Enums need be wrapped in a data class because thay can't
-// be used as primitive arguments. See https://github.com/flutter/flutter/issues/87307
-class FileChooserModeEnumData {
- late FileChooserMode value;
-}
-
class WebResourceRequestData {
WebResourceRequestData(
this.url,
@@ -393,7 +387,7 @@
int instanceId,
bool isCaptureEnabled,
List<String> acceptTypes,
- FileChooserModeEnumData mode,
+ FileChooserMode mode,
String? filenameHint,
);
}
diff --git a/packages/webview_flutter/webview_flutter_android/pubspec.yaml b/packages/webview_flutter/webview_flutter_android/pubspec.yaml
index 7812116..8944484 100644
--- a/packages/webview_flutter/webview_flutter_android/pubspec.yaml
+++ b/packages/webview_flutter/webview_flutter_android/pubspec.yaml
@@ -2,7 +2,7 @@
description: A Flutter plugin that provides a WebView widget on Android.
repository: https://github.com/flutter/packages/tree/main/packages/webview_flutter/webview_flutter_android
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+webview%22
-version: 3.9.4
+version: 3.9.5
environment:
sdk: ">=2.19.0 <4.0.0"
@@ -27,7 +27,7 @@
flutter_test:
sdk: flutter
mockito: 5.4.1
- pigeon: ^9.2.4
+ pigeon: ^11.0.0
topics:
- html
diff --git a/packages/webview_flutter/webview_flutter_android/test/android_webview_test.dart b/packages/webview_flutter/webview_flutter_android/test/android_webview_test.dart
index 995694f..194f1b1 100644
--- a/packages/webview_flutter/webview_flutter_android/test/android_webview_test.dart
+++ b/packages/webview_flutter/webview_flutter_android/test/android_webview_test.dart
@@ -1085,7 +1085,7 @@
0,
false,
const <String>['my', 'list'],
- FileChooserModeEnumData(value: FileChooserMode.openMultiple),
+ FileChooserMode.openMultiple,
'filenameHint',
);
diff --git a/packages/webview_flutter/webview_flutter_android/test/test_android_webview.g.dart b/packages/webview_flutter/webview_flutter_android/test/test_android_webview.g.dart
index 98060e0..a018fcc 100644
--- a/packages/webview_flutter/webview_flutter_android/test/test_android_webview.g.dart
+++ b/packages/webview_flutter/webview_flutter_android/test/test_android_webview.g.dart
@@ -1,7 +1,7 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Autogenerated from Pigeon (v9.2.5), do not edit directly.
+// Autogenerated from Pigeon (v11.0.1), do not edit directly.
// See also: https://pub.dev/packages/pigeon
// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, unnecessary_import
// ignore_for_file: avoid_relative_lib_imports
@@ -28,7 +28,8 @@
{BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.InstanceManagerHostApi.clear', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.InstanceManagerHostApi.clear',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -62,7 +63,8 @@
{BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.JavaObjectHostApi.dispose', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.JavaObjectHostApi.dispose',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -72,11 +74,11 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.JavaObjectHostApi.dispose was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.JavaObjectHostApi.dispose was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_identifier = (args[0] as int?);
assert(arg_identifier != null,
- 'Argument for dev.flutter.pigeon.JavaObjectHostApi.dispose was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.JavaObjectHostApi.dispose was null, expected non-null int.');
api.dispose(arg_identifier!);
return <Object?>[];
});
@@ -112,79 +114,7 @@
{BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.CookieManagerHostApi.attachInstance', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.CookieManagerHostApi.attachInstance was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceIdentifier = (args[0] as int?);
- assert(arg_instanceIdentifier != null,
- 'Argument for dev.flutter.pigeon.CookieManagerHostApi.attachInstance was null, expected non-null int.');
- api.attachInstance(arg_instanceIdentifier!);
- return <Object?>[];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.CookieManagerHostApi.setCookie', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.CookieManagerHostApi.setCookie was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_identifier = (args[0] as int?);
- assert(arg_identifier != null,
- 'Argument for dev.flutter.pigeon.CookieManagerHostApi.setCookie was null, expected non-null int.');
- final String? arg_url = (args[1] as String?);
- assert(arg_url != null,
- 'Argument for dev.flutter.pigeon.CookieManagerHostApi.setCookie was null, expected non-null String.');
- final String? arg_value = (args[2] as String?);
- assert(arg_value != null,
- 'Argument for dev.flutter.pigeon.CookieManagerHostApi.setCookie was null, expected non-null String.');
- api.setCookie(arg_identifier!, arg_url!, arg_value!);
- return <Object?>[];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.CookieManagerHostApi.removeAllCookies', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.CookieManagerHostApi.removeAllCookies was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_identifier = (args[0] as int?);
- assert(arg_identifier != null,
- 'Argument for dev.flutter.pigeon.CookieManagerHostApi.removeAllCookies was null, expected non-null int.');
- final bool output = await api.removeAllCookies(arg_identifier!);
- return <Object?>[output];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.CookieManagerHostApi.setAcceptThirdPartyCookies',
+ 'dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.attachInstance',
codec,
binaryMessenger: binaryMessenger);
if (api == null) {
@@ -195,17 +125,92 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.CookieManagerHostApi.setAcceptThirdPartyCookies was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.attachInstance was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceIdentifier = (args[0] as int?);
+ assert(arg_instanceIdentifier != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.attachInstance was null, expected non-null int.');
+ api.attachInstance(arg_instanceIdentifier!);
+ return <Object?>[];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.setCookie',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.setCookie was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_identifier = (args[0] as int?);
assert(arg_identifier != null,
- 'Argument for dev.flutter.pigeon.CookieManagerHostApi.setAcceptThirdPartyCookies was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.setCookie was null, expected non-null int.');
+ final String? arg_url = (args[1] as String?);
+ assert(arg_url != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.setCookie was null, expected non-null String.');
+ final String? arg_value = (args[2] as String?);
+ assert(arg_value != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.setCookie was null, expected non-null String.');
+ api.setCookie(arg_identifier!, arg_url!, arg_value!);
+ return <Object?>[];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.removeAllCookies',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.removeAllCookies was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_identifier = (args[0] as int?);
+ assert(arg_identifier != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.removeAllCookies was null, expected non-null int.');
+ final bool output = await api.removeAllCookies(arg_identifier!);
+ return <Object?>[output];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.setAcceptThirdPartyCookies',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.setAcceptThirdPartyCookies was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_identifier = (args[0] as int?);
+ assert(arg_identifier != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.setAcceptThirdPartyCookies was null, expected non-null int.');
final int? arg_webViewIdentifier = (args[1] as int?);
assert(arg_webViewIdentifier != null,
- 'Argument for dev.flutter.pigeon.CookieManagerHostApi.setAcceptThirdPartyCookies was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.setAcceptThirdPartyCookies was null, expected non-null int.');
final bool? arg_accept = (args[2] as bool?);
assert(arg_accept != null,
- 'Argument for dev.flutter.pigeon.CookieManagerHostApi.setAcceptThirdPartyCookies was null, expected non-null bool.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.CookieManagerHostApi.setAcceptThirdPartyCookies was null, expected non-null bool.');
api.setAcceptThirdPartyCookies(
arg_identifier!, arg_webViewIdentifier!, arg_accept!);
return <Object?>[];
@@ -217,7 +222,6 @@
class _TestWebViewHostApiCodec extends StandardMessageCodec {
const _TestWebViewHostApiCodec();
-
@override
void writeValue(WriteBuffer buffer, Object? value) {
if (value is WebViewPoint) {
@@ -302,7 +306,8 @@
{BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.create', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.create',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -312,11 +317,11 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.create was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.create was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.create was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.create was null, expected non-null int.');
api.create(arg_instanceId!);
return <Object?>[];
});
@@ -324,7 +329,8 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.loadData', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.loadData',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -334,14 +340,14 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.loadData was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.loadData was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.loadData was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.loadData was null, expected non-null int.');
final String? arg_data = (args[1] as String?);
assert(arg_data != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.loadData was null, expected non-null String.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.loadData was null, expected non-null String.');
final String? arg_mimeType = (args[2] as String?);
final String? arg_encoding = (args[3] as String?);
api.loadData(arg_instanceId!, arg_data!, arg_mimeType, arg_encoding);
@@ -351,7 +357,8 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.loadDataWithBaseUrl', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.loadDataWithBaseUrl',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -361,15 +368,15 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.loadDataWithBaseUrl was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.loadDataWithBaseUrl was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.loadDataWithBaseUrl was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.loadDataWithBaseUrl was null, expected non-null int.');
final String? arg_baseUrl = (args[1] as String?);
final String? arg_data = (args[2] as String?);
assert(arg_data != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.loadDataWithBaseUrl was null, expected non-null String.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.loadDataWithBaseUrl was null, expected non-null String.');
final String? arg_mimeType = (args[3] as String?);
final String? arg_encoding = (args[4] as String?);
final String? arg_historyUrl = (args[5] as String?);
@@ -381,391 +388,7 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.loadUrl', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.loadUrl was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.loadUrl was null, expected non-null int.');
- final String? arg_url = (args[1] as String?);
- assert(arg_url != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.loadUrl was null, expected non-null String.');
- final Map<String?, String?>? arg_headers =
- (args[2] as Map<Object?, Object?>?)?.cast<String?, String?>();
- assert(arg_headers != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.loadUrl was null, expected non-null Map<String?, String?>.');
- api.loadUrl(arg_instanceId!, arg_url!, arg_headers!);
- return <Object?>[];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.postUrl', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.postUrl was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.postUrl was null, expected non-null int.');
- final String? arg_url = (args[1] as String?);
- assert(arg_url != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.postUrl was null, expected non-null String.');
- final Uint8List? arg_data = (args[2] as Uint8List?);
- assert(arg_data != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.postUrl was null, expected non-null Uint8List.');
- api.postUrl(arg_instanceId!, arg_url!, arg_data!);
- return <Object?>[];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.getUrl', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.getUrl was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.getUrl was null, expected non-null int.');
- final String? output = api.getUrl(arg_instanceId!);
- return <Object?>[output];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.canGoBack', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.canGoBack was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.canGoBack was null, expected non-null int.');
- final bool output = api.canGoBack(arg_instanceId!);
- return <Object?>[output];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.canGoForward', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.canGoForward was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.canGoForward was null, expected non-null int.');
- final bool output = api.canGoForward(arg_instanceId!);
- return <Object?>[output];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.goBack', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.goBack was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.goBack was null, expected non-null int.');
- api.goBack(arg_instanceId!);
- return <Object?>[];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.goForward', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.goForward was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.goForward was null, expected non-null int.');
- api.goForward(arg_instanceId!);
- return <Object?>[];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.reload', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.reload was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.reload was null, expected non-null int.');
- api.reload(arg_instanceId!);
- return <Object?>[];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.clearCache', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.clearCache was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.clearCache was null, expected non-null int.');
- final bool? arg_includeDiskFiles = (args[1] as bool?);
- assert(arg_includeDiskFiles != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.clearCache was null, expected non-null bool.');
- api.clearCache(arg_instanceId!, arg_includeDiskFiles!);
- return <Object?>[];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.evaluateJavascript', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.evaluateJavascript was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.evaluateJavascript was null, expected non-null int.');
- final String? arg_javascriptString = (args[1] as String?);
- assert(arg_javascriptString != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.evaluateJavascript was null, expected non-null String.');
- final String? output = await api.evaluateJavascript(
- arg_instanceId!, arg_javascriptString!);
- return <Object?>[output];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.getTitle', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.getTitle was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.getTitle was null, expected non-null int.');
- final String? output = api.getTitle(arg_instanceId!);
- return <Object?>[output];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.scrollTo', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.scrollTo was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.scrollTo was null, expected non-null int.');
- final int? arg_x = (args[1] as int?);
- assert(arg_x != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.scrollTo was null, expected non-null int.');
- final int? arg_y = (args[2] as int?);
- assert(arg_y != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.scrollTo was null, expected non-null int.');
- api.scrollTo(arg_instanceId!, arg_x!, arg_y!);
- return <Object?>[];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.scrollBy', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.scrollBy was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.scrollBy was null, expected non-null int.');
- final int? arg_x = (args[1] as int?);
- assert(arg_x != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.scrollBy was null, expected non-null int.');
- final int? arg_y = (args[2] as int?);
- assert(arg_y != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.scrollBy was null, expected non-null int.');
- api.scrollBy(arg_instanceId!, arg_x!, arg_y!);
- return <Object?>[];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.getScrollX', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.getScrollX was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.getScrollX was null, expected non-null int.');
- final int output = api.getScrollX(arg_instanceId!);
- return <Object?>[output];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.getScrollY', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.getScrollY was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.getScrollY was null, expected non-null int.');
- final int output = api.getScrollY(arg_instanceId!);
- return <Object?>[output];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.getScrollPosition', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.getScrollPosition was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.getScrollPosition was null, expected non-null int.');
- final WebViewPoint output = api.getScrollPosition(arg_instanceId!);
- return <Object?>[output];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.setWebContentsDebuggingEnabled',
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.loadUrl',
codec,
binaryMessenger: binaryMessenger);
if (api == null) {
@@ -776,11 +399,411 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.setWebContentsDebuggingEnabled was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.loadUrl was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.loadUrl was null, expected non-null int.');
+ final String? arg_url = (args[1] as String?);
+ assert(arg_url != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.loadUrl was null, expected non-null String.');
+ final Map<String?, String?>? arg_headers =
+ (args[2] as Map<Object?, Object?>?)?.cast<String?, String?>();
+ assert(arg_headers != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.loadUrl was null, expected non-null Map<String?, String?>.');
+ api.loadUrl(arg_instanceId!, arg_url!, arg_headers!);
+ return <Object?>[];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.postUrl',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.postUrl was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.postUrl was null, expected non-null int.');
+ final String? arg_url = (args[1] as String?);
+ assert(arg_url != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.postUrl was null, expected non-null String.');
+ final Uint8List? arg_data = (args[2] as Uint8List?);
+ assert(arg_data != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.postUrl was null, expected non-null Uint8List.');
+ api.postUrl(arg_instanceId!, arg_url!, arg_data!);
+ return <Object?>[];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getUrl',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getUrl was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getUrl was null, expected non-null int.');
+ final String? output = api.getUrl(arg_instanceId!);
+ return <Object?>[output];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.canGoBack',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.canGoBack was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.canGoBack was null, expected non-null int.');
+ final bool output = api.canGoBack(arg_instanceId!);
+ return <Object?>[output];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.canGoForward',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.canGoForward was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.canGoForward was null, expected non-null int.');
+ final bool output = api.canGoForward(arg_instanceId!);
+ return <Object?>[output];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.goBack',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.goBack was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.goBack was null, expected non-null int.');
+ api.goBack(arg_instanceId!);
+ return <Object?>[];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.goForward',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.goForward was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.goForward was null, expected non-null int.');
+ api.goForward(arg_instanceId!);
+ return <Object?>[];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.reload',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.reload was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.reload was null, expected non-null int.');
+ api.reload(arg_instanceId!);
+ return <Object?>[];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.clearCache',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.clearCache was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.clearCache was null, expected non-null int.');
+ final bool? arg_includeDiskFiles = (args[1] as bool?);
+ assert(arg_includeDiskFiles != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.clearCache was null, expected non-null bool.');
+ api.clearCache(arg_instanceId!, arg_includeDiskFiles!);
+ return <Object?>[];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.evaluateJavascript',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.evaluateJavascript was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.evaluateJavascript was null, expected non-null int.');
+ final String? arg_javascriptString = (args[1] as String?);
+ assert(arg_javascriptString != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.evaluateJavascript was null, expected non-null String.');
+ final String? output = await api.evaluateJavascript(
+ arg_instanceId!, arg_javascriptString!);
+ return <Object?>[output];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getTitle',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getTitle was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getTitle was null, expected non-null int.');
+ final String? output = api.getTitle(arg_instanceId!);
+ return <Object?>[output];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.scrollTo',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.scrollTo was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.scrollTo was null, expected non-null int.');
+ final int? arg_x = (args[1] as int?);
+ assert(arg_x != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.scrollTo was null, expected non-null int.');
+ final int? arg_y = (args[2] as int?);
+ assert(arg_y != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.scrollTo was null, expected non-null int.');
+ api.scrollTo(arg_instanceId!, arg_x!, arg_y!);
+ return <Object?>[];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.scrollBy',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.scrollBy was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.scrollBy was null, expected non-null int.');
+ final int? arg_x = (args[1] as int?);
+ assert(arg_x != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.scrollBy was null, expected non-null int.');
+ final int? arg_y = (args[2] as int?);
+ assert(arg_y != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.scrollBy was null, expected non-null int.');
+ api.scrollBy(arg_instanceId!, arg_x!, arg_y!);
+ return <Object?>[];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getScrollX',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getScrollX was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getScrollX was null, expected non-null int.');
+ final int output = api.getScrollX(arg_instanceId!);
+ return <Object?>[output];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getScrollY',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getScrollY was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getScrollY was null, expected non-null int.');
+ final int output = api.getScrollY(arg_instanceId!);
+ return <Object?>[output];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getScrollPosition',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getScrollPosition was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.getScrollPosition was null, expected non-null int.');
+ final WebViewPoint output = api.getScrollPosition(arg_instanceId!);
+ return <Object?>[output];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setWebContentsDebuggingEnabled',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setWebContentsDebuggingEnabled was null.');
final List<Object?> args = (message as List<Object?>?)!;
final bool? arg_enabled = (args[0] as bool?);
assert(arg_enabled != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.setWebContentsDebuggingEnabled was null, expected non-null bool.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setWebContentsDebuggingEnabled was null, expected non-null bool.');
api.setWebContentsDebuggingEnabled(arg_enabled!);
return <Object?>[];
});
@@ -788,7 +811,8 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.setWebViewClient', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setWebViewClient',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -798,14 +822,14 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.setWebViewClient was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setWebViewClient was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.setWebViewClient was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setWebViewClient was null, expected non-null int.');
final int? arg_webViewClientInstanceId = (args[1] as int?);
assert(arg_webViewClientInstanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.setWebViewClient was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setWebViewClient was null, expected non-null int.');
api.setWebViewClient(arg_instanceId!, arg_webViewClientInstanceId!);
return <Object?>[];
});
@@ -813,7 +837,8 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.addJavaScriptChannel', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.addJavaScriptChannel',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -823,14 +848,14 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.addJavaScriptChannel was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.addJavaScriptChannel was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.addJavaScriptChannel was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.addJavaScriptChannel was null, expected non-null int.');
final int? arg_javaScriptChannelInstanceId = (args[1] as int?);
assert(arg_javaScriptChannelInstanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.addJavaScriptChannel was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.addJavaScriptChannel was null, expected non-null int.');
api.addJavaScriptChannel(
arg_instanceId!, arg_javaScriptChannelInstanceId!);
return <Object?>[];
@@ -839,7 +864,8 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.removeJavaScriptChannel', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.removeJavaScriptChannel',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -849,14 +875,14 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.removeJavaScriptChannel was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.removeJavaScriptChannel was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.removeJavaScriptChannel was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.removeJavaScriptChannel was null, expected non-null int.');
final int? arg_javaScriptChannelInstanceId = (args[1] as int?);
assert(arg_javaScriptChannelInstanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.removeJavaScriptChannel was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.removeJavaScriptChannel was null, expected non-null int.');
api.removeJavaScriptChannel(
arg_instanceId!, arg_javaScriptChannelInstanceId!);
return <Object?>[];
@@ -865,7 +891,8 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.setDownloadListener', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setDownloadListener',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -875,11 +902,11 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.setDownloadListener was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setDownloadListener was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.setDownloadListener was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setDownloadListener was null, expected non-null int.');
final int? arg_listenerInstanceId = (args[1] as int?);
api.setDownloadListener(arg_instanceId!, arg_listenerInstanceId);
return <Object?>[];
@@ -888,7 +915,8 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.setWebChromeClient', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setWebChromeClient',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -898,11 +926,11 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.setWebChromeClient was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setWebChromeClient was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.setWebChromeClient was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setWebChromeClient was null, expected non-null int.');
final int? arg_clientInstanceId = (args[1] as int?);
api.setWebChromeClient(arg_instanceId!, arg_clientInstanceId);
return <Object?>[];
@@ -911,7 +939,8 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewHostApi.setBackgroundColor', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setBackgroundColor',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -921,14 +950,14 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.setBackgroundColor was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setBackgroundColor was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.setBackgroundColor was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setBackgroundColor was null, expected non-null int.');
final int? arg_color = (args[1] as int?);
assert(arg_color != null,
- 'Argument for dev.flutter.pigeon.WebViewHostApi.setBackgroundColor was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewHostApi.setBackgroundColor was null, expected non-null int.');
api.setBackgroundColor(arg_instanceId!, arg_color!);
return <Object?>[];
});
@@ -974,57 +1003,7 @@
{BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.create', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.create was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.create was null, expected non-null int.');
- final int? arg_webViewInstanceId = (args[1] as int?);
- assert(arg_webViewInstanceId != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.create was null, expected non-null int.');
- api.create(arg_instanceId!, arg_webViewInstanceId!);
- return <Object?>[];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setDomStorageEnabled', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setDomStorageEnabled was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setDomStorageEnabled was null, expected non-null int.');
- final bool? arg_flag = (args[1] as bool?);
- assert(arg_flag != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setDomStorageEnabled was null, expected non-null bool.');
- api.setDomStorageEnabled(arg_instanceId!, arg_flag!);
- return <Object?>[];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setJavaScriptCanOpenWindowsAutomatically',
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.create',
codec,
binaryMessenger: binaryMessenger);
if (api == null) {
@@ -1035,14 +1014,66 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setJavaScriptCanOpenWindowsAutomatically was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.create was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setJavaScriptCanOpenWindowsAutomatically was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.create was null, expected non-null int.');
+ final int? arg_webViewInstanceId = (args[1] as int?);
+ assert(arg_webViewInstanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.create was null, expected non-null int.');
+ api.create(arg_instanceId!, arg_webViewInstanceId!);
+ return <Object?>[];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setDomStorageEnabled',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setDomStorageEnabled was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setDomStorageEnabled was null, expected non-null int.');
final bool? arg_flag = (args[1] as bool?);
assert(arg_flag != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setJavaScriptCanOpenWindowsAutomatically was null, expected non-null bool.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setDomStorageEnabled was null, expected non-null bool.');
+ api.setDomStorageEnabled(arg_instanceId!, arg_flag!);
+ return <Object?>[];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setJavaScriptCanOpenWindowsAutomatically',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setJavaScriptCanOpenWindowsAutomatically was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setJavaScriptCanOpenWindowsAutomatically was null, expected non-null int.');
+ final bool? arg_flag = (args[1] as bool?);
+ assert(arg_flag != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setJavaScriptCanOpenWindowsAutomatically was null, expected non-null bool.');
api.setJavaScriptCanOpenWindowsAutomatically(
arg_instanceId!, arg_flag!);
return <Object?>[];
@@ -1051,7 +1082,7 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setSupportMultipleWindows',
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setSupportMultipleWindows',
codec,
binaryMessenger: binaryMessenger);
if (api == null) {
@@ -1062,14 +1093,14 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setSupportMultipleWindows was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setSupportMultipleWindows was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setSupportMultipleWindows was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setSupportMultipleWindows was null, expected non-null int.');
final bool? arg_support = (args[1] as bool?);
assert(arg_support != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setSupportMultipleWindows was null, expected non-null bool.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setSupportMultipleWindows was null, expected non-null bool.');
api.setSupportMultipleWindows(arg_instanceId!, arg_support!);
return <Object?>[];
});
@@ -1077,7 +1108,8 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setJavaScriptEnabled', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setJavaScriptEnabled',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -1087,14 +1119,14 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setJavaScriptEnabled was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setJavaScriptEnabled was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setJavaScriptEnabled was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setJavaScriptEnabled was null, expected non-null int.');
final bool? arg_flag = (args[1] as bool?);
assert(arg_flag != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setJavaScriptEnabled was null, expected non-null bool.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setJavaScriptEnabled was null, expected non-null bool.');
api.setJavaScriptEnabled(arg_instanceId!, arg_flag!);
return <Object?>[];
});
@@ -1102,7 +1134,8 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setUserAgentString', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setUserAgentString',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -1112,11 +1145,11 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setUserAgentString was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setUserAgentString was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setUserAgentString was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setUserAgentString was null, expected non-null int.');
final String? arg_userAgentString = (args[1] as String?);
api.setUserAgentString(arg_instanceId!, arg_userAgentString);
return <Object?>[];
@@ -1125,7 +1158,7 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setMediaPlaybackRequiresUserGesture',
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setMediaPlaybackRequiresUserGesture',
codec,
binaryMessenger: binaryMessenger);
if (api == null) {
@@ -1136,14 +1169,14 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setMediaPlaybackRequiresUserGesture was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setMediaPlaybackRequiresUserGesture was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setMediaPlaybackRequiresUserGesture was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setMediaPlaybackRequiresUserGesture was null, expected non-null int.');
final bool? arg_require = (args[1] as bool?);
assert(arg_require != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setMediaPlaybackRequiresUserGesture was null, expected non-null bool.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setMediaPlaybackRequiresUserGesture was null, expected non-null bool.');
api.setMediaPlaybackRequiresUserGesture(
arg_instanceId!, arg_require!);
return <Object?>[];
@@ -1152,32 +1185,7 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setSupportZoom', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setSupportZoom was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setSupportZoom was null, expected non-null int.');
- final bool? arg_support = (args[1] as bool?);
- assert(arg_support != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setSupportZoom was null, expected non-null bool.');
- api.setSupportZoom(arg_instanceId!, arg_support!);
- return <Object?>[];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setLoadWithOverviewMode',
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setSupportZoom',
codec,
binaryMessenger: binaryMessenger);
if (api == null) {
@@ -1188,14 +1196,40 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setLoadWithOverviewMode was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setSupportZoom was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setLoadWithOverviewMode was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setSupportZoom was null, expected non-null int.');
+ final bool? arg_support = (args[1] as bool?);
+ assert(arg_support != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setSupportZoom was null, expected non-null bool.');
+ api.setSupportZoom(arg_instanceId!, arg_support!);
+ return <Object?>[];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setLoadWithOverviewMode',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setLoadWithOverviewMode was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setLoadWithOverviewMode was null, expected non-null int.');
final bool? arg_overview = (args[1] as bool?);
assert(arg_overview != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setLoadWithOverviewMode was null, expected non-null bool.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setLoadWithOverviewMode was null, expected non-null bool.');
api.setLoadWithOverviewMode(arg_instanceId!, arg_overview!);
return <Object?>[];
});
@@ -1203,7 +1237,8 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setUseWideViewPort', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setUseWideViewPort',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -1213,14 +1248,14 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setUseWideViewPort was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setUseWideViewPort was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setUseWideViewPort was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setUseWideViewPort was null, expected non-null int.');
final bool? arg_use = (args[1] as bool?);
assert(arg_use != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setUseWideViewPort was null, expected non-null bool.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setUseWideViewPort was null, expected non-null bool.');
api.setUseWideViewPort(arg_instanceId!, arg_use!);
return <Object?>[];
});
@@ -1228,7 +1263,8 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setDisplayZoomControls', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setDisplayZoomControls',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -1238,14 +1274,14 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setDisplayZoomControls was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setDisplayZoomControls was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setDisplayZoomControls was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setDisplayZoomControls was null, expected non-null int.');
final bool? arg_enabled = (args[1] as bool?);
assert(arg_enabled != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setDisplayZoomControls was null, expected non-null bool.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setDisplayZoomControls was null, expected non-null bool.');
api.setDisplayZoomControls(arg_instanceId!, arg_enabled!);
return <Object?>[];
});
@@ -1253,7 +1289,8 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setBuiltInZoomControls', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setBuiltInZoomControls',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -1263,14 +1300,14 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setBuiltInZoomControls was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setBuiltInZoomControls was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setBuiltInZoomControls was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setBuiltInZoomControls was null, expected non-null int.');
final bool? arg_enabled = (args[1] as bool?);
assert(arg_enabled != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setBuiltInZoomControls was null, expected non-null bool.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setBuiltInZoomControls was null, expected non-null bool.');
api.setBuiltInZoomControls(arg_instanceId!, arg_enabled!);
return <Object?>[];
});
@@ -1278,7 +1315,8 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setAllowFileAccess', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setAllowFileAccess',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -1288,14 +1326,14 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setAllowFileAccess was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setAllowFileAccess was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setAllowFileAccess was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setAllowFileAccess was null, expected non-null int.');
final bool? arg_enabled = (args[1] as bool?);
assert(arg_enabled != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setAllowFileAccess was null, expected non-null bool.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setAllowFileAccess was null, expected non-null bool.');
api.setAllowFileAccess(arg_instanceId!, arg_enabled!);
return <Object?>[];
});
@@ -1303,7 +1341,8 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebSettingsHostApi.setTextZoom', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setTextZoom',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -1313,14 +1352,14 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setTextZoom was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setTextZoom was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setTextZoom was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setTextZoom was null, expected non-null int.');
final int? arg_textZoom = (args[1] as int?);
assert(arg_textZoom != null,
- 'Argument for dev.flutter.pigeon.WebSettingsHostApi.setTextZoom was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebSettingsHostApi.setTextZoom was null, expected non-null int.');
api.setTextZoom(arg_instanceId!, arg_textZoom!);
return <Object?>[];
});
@@ -1340,7 +1379,8 @@
{BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.JavaScriptChannelHostApi.create', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.JavaScriptChannelHostApi.create',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -1350,14 +1390,14 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.JavaScriptChannelHostApi.create was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.JavaScriptChannelHostApi.create was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.JavaScriptChannelHostApi.create was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.JavaScriptChannelHostApi.create was null, expected non-null int.');
final String? arg_channelName = (args[1] as String?);
assert(arg_channelName != null,
- 'Argument for dev.flutter.pigeon.JavaScriptChannelHostApi.create was null, expected non-null String.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.JavaScriptChannelHostApi.create was null, expected non-null String.');
api.create(arg_instanceId!, arg_channelName!);
return <Object?>[];
});
@@ -1380,29 +1420,7 @@
{BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewClientHostApi.create', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewClientHostApi.create was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewClientHostApi.create was null, expected non-null int.');
- api.create(arg_instanceId!);
- return <Object?>[];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebViewClientHostApi.setSynchronousReturnValueForShouldOverrideUrlLoading',
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewClientHostApi.create',
codec,
binaryMessenger: binaryMessenger);
if (api == null) {
@@ -1413,14 +1431,37 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebViewClientHostApi.setSynchronousReturnValueForShouldOverrideUrlLoading was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientHostApi.create was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebViewClientHostApi.setSynchronousReturnValueForShouldOverrideUrlLoading was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientHostApi.create was null, expected non-null int.');
+ api.create(arg_instanceId!);
+ return <Object?>[];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebViewClientHostApi.setSynchronousReturnValueForShouldOverrideUrlLoading',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientHostApi.setSynchronousReturnValueForShouldOverrideUrlLoading was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientHostApi.setSynchronousReturnValueForShouldOverrideUrlLoading was null, expected non-null int.');
final bool? arg_value = (args[1] as bool?);
assert(arg_value != null,
- 'Argument for dev.flutter.pigeon.WebViewClientHostApi.setSynchronousReturnValueForShouldOverrideUrlLoading was null, expected non-null bool.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebViewClientHostApi.setSynchronousReturnValueForShouldOverrideUrlLoading was null, expected non-null bool.');
api.setSynchronousReturnValueForShouldOverrideUrlLoading(
arg_instanceId!, arg_value!);
return <Object?>[];
@@ -1441,7 +1482,8 @@
{BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.DownloadListenerHostApi.create', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.DownloadListenerHostApi.create',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -1451,11 +1493,11 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.DownloadListenerHostApi.create was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.DownloadListenerHostApi.create was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.DownloadListenerHostApi.create was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.DownloadListenerHostApi.create was null, expected non-null int.');
api.create(arg_instanceId!);
return <Object?>[];
});
@@ -1478,29 +1520,7 @@
{BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebChromeClientHostApi.create', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.WebChromeClientHostApi.create was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final int? arg_instanceId = (args[0] as int?);
- assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebChromeClientHostApi.create was null, expected non-null int.');
- api.create(arg_instanceId!);
- return <Object?>[];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebChromeClientHostApi.setSynchronousReturnValueForOnShowFileChooser',
+ 'dev.flutter.pigeon.webview_flutter_android.WebChromeClientHostApi.create',
codec,
binaryMessenger: binaryMessenger);
if (api == null) {
@@ -1511,14 +1531,37 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebChromeClientHostApi.setSynchronousReturnValueForOnShowFileChooser was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebChromeClientHostApi.create was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebChromeClientHostApi.setSynchronousReturnValueForOnShowFileChooser was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebChromeClientHostApi.create was null, expected non-null int.');
+ api.create(arg_instanceId!);
+ return <Object?>[];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.WebChromeClientHostApi.setSynchronousReturnValueForOnShowFileChooser',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebChromeClientHostApi.setSynchronousReturnValueForOnShowFileChooser was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final int? arg_instanceId = (args[0] as int?);
+ assert(arg_instanceId != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebChromeClientHostApi.setSynchronousReturnValueForOnShowFileChooser was null, expected non-null int.');
final bool? arg_value = (args[1] as bool?);
assert(arg_value != null,
- 'Argument for dev.flutter.pigeon.WebChromeClientHostApi.setSynchronousReturnValueForOnShowFileChooser was null, expected non-null bool.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebChromeClientHostApi.setSynchronousReturnValueForOnShowFileChooser was null, expected non-null bool.');
api.setSynchronousReturnValueForOnShowFileChooser(
arg_instanceId!, arg_value!);
return <Object?>[];
@@ -1541,29 +1584,7 @@
{BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.FlutterAssetManagerHostApi.list', codec,
- binaryMessenger: binaryMessenger);
- if (api == null) {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel, null);
- } else {
- _testBinaryMessengerBinding!.defaultBinaryMessenger
- .setMockDecodedMessageHandler<Object?>(channel,
- (Object? message) async {
- assert(message != null,
- 'Argument for dev.flutter.pigeon.FlutterAssetManagerHostApi.list was null.');
- final List<Object?> args = (message as List<Object?>?)!;
- final String? arg_path = (args[0] as String?);
- assert(arg_path != null,
- 'Argument for dev.flutter.pigeon.FlutterAssetManagerHostApi.list was null, expected non-null String.');
- final List<String?> output = api.list(arg_path!);
- return <Object?>[output];
- });
- }
- }
- {
- final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.FlutterAssetManagerHostApi.getAssetFilePathByName',
+ 'dev.flutter.pigeon.webview_flutter_android.FlutterAssetManagerHostApi.list',
codec,
binaryMessenger: binaryMessenger);
if (api == null) {
@@ -1574,11 +1595,34 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.FlutterAssetManagerHostApi.getAssetFilePathByName was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.FlutterAssetManagerHostApi.list was null.');
+ final List<Object?> args = (message as List<Object?>?)!;
+ final String? arg_path = (args[0] as String?);
+ assert(arg_path != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.FlutterAssetManagerHostApi.list was null, expected non-null String.');
+ final List<String?> output = api.list(arg_path!);
+ return <Object?>[output];
+ });
+ }
+ }
+ {
+ final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
+ 'dev.flutter.pigeon.webview_flutter_android.FlutterAssetManagerHostApi.getAssetFilePathByName',
+ codec,
+ binaryMessenger: binaryMessenger);
+ if (api == null) {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel, null);
+ } else {
+ _testBinaryMessengerBinding!.defaultBinaryMessenger
+ .setMockDecodedMessageHandler<Object?>(channel,
+ (Object? message) async {
+ assert(message != null,
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.FlutterAssetManagerHostApi.getAssetFilePathByName was null.');
final List<Object?> args = (message as List<Object?>?)!;
final String? arg_name = (args[0] as String?);
assert(arg_name != null,
- 'Argument for dev.flutter.pigeon.FlutterAssetManagerHostApi.getAssetFilePathByName was null, expected non-null String.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.FlutterAssetManagerHostApi.getAssetFilePathByName was null, expected non-null String.');
final String output = api.getAssetFilePathByName(arg_name!);
return <Object?>[output];
});
@@ -1600,7 +1644,8 @@
{BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebStorageHostApi.create', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebStorageHostApi.create',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -1610,11 +1655,11 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebStorageHostApi.create was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebStorageHostApi.create was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebStorageHostApi.create was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebStorageHostApi.create was null, expected non-null int.');
api.create(arg_instanceId!);
return <Object?>[];
});
@@ -1622,7 +1667,8 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.WebStorageHostApi.deleteAllData', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.WebStorageHostApi.deleteAllData',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -1632,11 +1678,11 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.WebStorageHostApi.deleteAllData was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebStorageHostApi.deleteAllData was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.WebStorageHostApi.deleteAllData was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.WebStorageHostApi.deleteAllData was null, expected non-null int.');
api.deleteAllData(arg_instanceId!);
return <Object?>[];
});
@@ -1667,7 +1713,8 @@
{BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.PermissionRequestHostApi.grant', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.PermissionRequestHostApi.grant',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -1677,15 +1724,15 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.PermissionRequestHostApi.grant was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.PermissionRequestHostApi.grant was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.PermissionRequestHostApi.grant was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.PermissionRequestHostApi.grant was null, expected non-null int.');
final List<String?>? arg_resources =
(args[1] as List<Object?>?)?.cast<String?>();
assert(arg_resources != null,
- 'Argument for dev.flutter.pigeon.PermissionRequestHostApi.grant was null, expected non-null List<String?>.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.PermissionRequestHostApi.grant was null, expected non-null List<String?>.');
api.grant(arg_instanceId!, arg_resources!);
return <Object?>[];
});
@@ -1693,7 +1740,8 @@
}
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.PermissionRequestHostApi.deny', codec,
+ 'dev.flutter.pigeon.webview_flutter_android.PermissionRequestHostApi.deny',
+ codec,
binaryMessenger: binaryMessenger);
if (api == null) {
_testBinaryMessengerBinding!.defaultBinaryMessenger
@@ -1703,11 +1751,11 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.PermissionRequestHostApi.deny was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.PermissionRequestHostApi.deny was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.PermissionRequestHostApi.deny was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.PermissionRequestHostApi.deny was null, expected non-null int.');
api.deny(arg_instanceId!);
return <Object?>[];
});
@@ -1735,7 +1783,7 @@
{BinaryMessenger? binaryMessenger}) {
{
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
- 'dev.flutter.pigeon.GeolocationPermissionsCallbackHostApi.invoke',
+ 'dev.flutter.pigeon.webview_flutter_android.GeolocationPermissionsCallbackHostApi.invoke',
codec,
binaryMessenger: binaryMessenger);
if (api == null) {
@@ -1746,20 +1794,20 @@
.setMockDecodedMessageHandler<Object?>(channel,
(Object? message) async {
assert(message != null,
- 'Argument for dev.flutter.pigeon.GeolocationPermissionsCallbackHostApi.invoke was null.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.GeolocationPermissionsCallbackHostApi.invoke was null.');
final List<Object?> args = (message as List<Object?>?)!;
final int? arg_instanceId = (args[0] as int?);
assert(arg_instanceId != null,
- 'Argument for dev.flutter.pigeon.GeolocationPermissionsCallbackHostApi.invoke was null, expected non-null int.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.GeolocationPermissionsCallbackHostApi.invoke was null, expected non-null int.');
final String? arg_origin = (args[1] as String?);
assert(arg_origin != null,
- 'Argument for dev.flutter.pigeon.GeolocationPermissionsCallbackHostApi.invoke was null, expected non-null String.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.GeolocationPermissionsCallbackHostApi.invoke was null, expected non-null String.');
final bool? arg_allow = (args[2] as bool?);
assert(arg_allow != null,
- 'Argument for dev.flutter.pigeon.GeolocationPermissionsCallbackHostApi.invoke was null, expected non-null bool.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.GeolocationPermissionsCallbackHostApi.invoke was null, expected non-null bool.');
final bool? arg_retain = (args[3] as bool?);
assert(arg_retain != null,
- 'Argument for dev.flutter.pigeon.GeolocationPermissionsCallbackHostApi.invoke was null, expected non-null bool.');
+ 'Argument for dev.flutter.pigeon.webview_flutter_android.GeolocationPermissionsCallbackHostApi.invoke was null, expected non-null bool.');
api.invoke(arg_instanceId!, arg_origin!, arg_allow!, arg_retain!);
return <Object?>[];
});