what-the-bank/sources/io/flutter/plugins/webviewflutter/GeneratedAndroidWebView.java

2291 lines
109 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package io.flutter.plugins.webviewflutter;
import com.google.android.gms.common.internal.ImagesContract;
import io.flutter.plugin.common.BasicMessageChannel;
import io.flutter.plugin.common.BinaryMessenger;
import io.flutter.plugin.common.MessageCodec;
import io.flutter.plugin.common.StandardMessageCodec;
import io.flutter.plugins.webviewflutter.GeneratedAndroidWebView;
import java.io.ByteArrayOutputStream;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import org.bouncycastle.i18n.ErrorBundle;
/* loaded from: classes6.dex */
public class GeneratedAndroidWebView {
/* loaded from: classes6.dex */
public interface Result<T> {
void error(Throwable th);
void success(T t);
}
/* loaded from: classes6.dex */
public static class WebResourceRequestData {
private Boolean hasGesture;
private Boolean isForMainFrame;
private Boolean isRedirect;
private String method;
private Map<String, String> requestHeaders;
private String url;
Map<String, Object> toMap() {
HashMap hashMap = new HashMap();
hashMap.put(ImagesContract.URL, this.url);
hashMap.put("isForMainFrame", this.isForMainFrame);
hashMap.put("isRedirect", this.isRedirect);
hashMap.put("hasGesture", this.hasGesture);
hashMap.put("method", this.method);
hashMap.put("requestHeaders", this.requestHeaders);
return hashMap;
}
static WebResourceRequestData fromMap(Map<String, Object> map) {
WebResourceRequestData webResourceRequestData = new WebResourceRequestData();
webResourceRequestData.url = (String) map.get(ImagesContract.URL);
webResourceRequestData.isForMainFrame = (Boolean) map.get("isForMainFrame");
webResourceRequestData.isRedirect = (Boolean) map.get("isRedirect");
webResourceRequestData.hasGesture = (Boolean) map.get("hasGesture");
webResourceRequestData.method = (String) map.get("method");
webResourceRequestData.requestHeaders = (Map) map.get("requestHeaders");
return webResourceRequestData;
}
public void setUrl(String str) {
this.url = str;
}
public void setRequestHeaders(Map<String, String> map) {
this.requestHeaders = map;
}
public void setMethod(String str) {
this.method = str;
}
public void setIsRedirect(Boolean bool) {
this.isRedirect = bool;
}
public void setIsForMainFrame(Boolean bool) {
this.isForMainFrame = bool;
}
public void setHasGesture(Boolean bool) {
this.hasGesture = bool;
}
public String getUrl() {
return this.url;
}
public Map<String, String> getRequestHeaders() {
return this.requestHeaders;
}
public String getMethod() {
return this.method;
}
public Boolean getIsRedirect() {
return this.isRedirect;
}
public Boolean getIsForMainFrame() {
return this.isForMainFrame;
}
public Boolean getHasGesture() {
return this.hasGesture;
}
}
/* loaded from: classes6.dex */
public static class WebResourceErrorData {
private String description;
private Long errorCode;
Map<String, Object> toMap() {
HashMap hashMap = new HashMap();
hashMap.put("errorCode", this.errorCode);
hashMap.put("description", this.description);
return hashMap;
}
static WebResourceErrorData fromMap(Map<String, Object> map) {
Long valueOf;
WebResourceErrorData webResourceErrorData = new WebResourceErrorData();
Object obj = map.get("errorCode");
if (obj == null) {
valueOf = null;
} else {
valueOf = Long.valueOf(obj instanceof Integer ? ((Integer) obj).intValue() : ((Long) obj).longValue());
}
webResourceErrorData.errorCode = valueOf;
webResourceErrorData.description = (String) map.get("description");
return webResourceErrorData;
}
public void setErrorCode(Long l) {
this.errorCode = l;
}
public void setDescription(String str) {
this.description = str;
}
public Long getErrorCode() {
return this.errorCode;
}
public String getDescription() {
return this.description;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes6.dex */
public static class WebViewHostApiCodec extends StandardMessageCodec {
public static final WebViewHostApiCodec INSTANCE = new WebViewHostApiCodec();
private WebViewHostApiCodec() {
}
}
/* loaded from: classes6.dex */
public interface WebViewHostApi {
void addJavaScriptChannel(Long l, Long l2);
Boolean canGoBack(Long l);
Boolean canGoForward(Long l);
void clearCache(Long l, Boolean bool);
void create(Long l, Boolean bool);
void dispose(Long l);
void evaluateJavascript(Long l, String str, Result<String> result);
Long getScrollX(Long l);
Long getScrollY(Long l);
String getTitle(Long l);
String getUrl(Long l);
void goBack(Long l);
void goForward(Long l);
void loadData(Long l, String str, String str2, String str3);
void loadDataWithBaseUrl(Long l, String str, String str2, String str3, String str4, String str5);
void loadUrl(Long l, String str, Map<String, String> map);
void reload(Long l);
void removeJavaScriptChannel(Long l, Long l2);
void scrollBy(Long l, Long l2, Long l3);
void scrollTo(Long l, Long l2, Long l3);
void setBackgroundColor(Long l, Long l2);
void setDownloadListener(Long l, Long l2);
void setWebChromeClient(Long l, Long l2);
void setWebContentsDebuggingEnabled(Boolean bool);
void setWebViewClient(Long l, Long l2);
static MessageCodec<Object> getCodec() {
return WebViewHostApiCodec.INSTANCE;
}
static void setup(BinaryMessenger binaryMessenger, final WebViewHostApi webViewHostApi) {
BasicMessageChannel basicMessageChannel = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.create", getCodec());
if (webViewHostApi != null) {
basicMessageChannel.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda0
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$0(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel2 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.dispose", getCodec());
if (webViewHostApi != null) {
basicMessageChannel2.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda2
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$1(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel2.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel3 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.loadData", getCodec());
if (webViewHostApi != null) {
basicMessageChannel3.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda8
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$2(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel3.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel4 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.loadDataWithBaseUrl", getCodec());
if (webViewHostApi != null) {
basicMessageChannel4.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda9
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$3(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel4.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel5 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.loadUrl", getCodec());
if (webViewHostApi != null) {
basicMessageChannel5.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda10
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$4(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel5.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel6 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.getUrl", getCodec());
if (webViewHostApi != null) {
basicMessageChannel6.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda12
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$5(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel6.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel7 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.canGoBack", getCodec());
if (webViewHostApi != null) {
basicMessageChannel7.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda13
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$6(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel7.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel8 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.canGoForward", getCodec());
if (webViewHostApi != null) {
basicMessageChannel8.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda14
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$7(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel8.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel9 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.goBack", getCodec());
if (webViewHostApi != null) {
basicMessageChannel9.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda15
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$8(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel9.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel10 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.goForward", getCodec());
if (webViewHostApi != null) {
basicMessageChannel10.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda16
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$9(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel10.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel11 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.reload", getCodec());
if (webViewHostApi != null) {
basicMessageChannel11.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda11
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$10(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel11.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel12 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.clearCache", getCodec());
if (webViewHostApi != null) {
basicMessageChannel12.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda17
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$11(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel12.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel13 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.evaluateJavascript", getCodec());
if (webViewHostApi != null) {
basicMessageChannel13.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda18
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$12(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel13.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel14 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.getTitle", getCodec());
if (webViewHostApi != null) {
basicMessageChannel14.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda19
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$13(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel14.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel15 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.scrollTo", getCodec());
if (webViewHostApi != null) {
basicMessageChannel15.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda20
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$14(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel15.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel16 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.scrollBy", getCodec());
if (webViewHostApi != null) {
basicMessageChannel16.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda21
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$15(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel16.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel17 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.getScrollX", getCodec());
if (webViewHostApi != null) {
basicMessageChannel17.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda22
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$16(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel17.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel18 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.getScrollY", getCodec());
if (webViewHostApi != null) {
basicMessageChannel18.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda23
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$17(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel18.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel19 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.setWebContentsDebuggingEnabled", getCodec());
if (webViewHostApi != null) {
basicMessageChannel19.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda24
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$18(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel19.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel20 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.setWebViewClient", getCodec());
if (webViewHostApi != null) {
basicMessageChannel20.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda1
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$19(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel20.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel21 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.addJavaScriptChannel", getCodec());
if (webViewHostApi != null) {
basicMessageChannel21.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda3
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$20(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel21.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel22 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.removeJavaScriptChannel", getCodec());
if (webViewHostApi != null) {
basicMessageChannel22.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda4
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$21(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel22.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel23 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.setDownloadListener", getCodec());
if (webViewHostApi != null) {
basicMessageChannel23.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda5
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$22(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel23.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel24 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.setWebChromeClient", getCodec());
if (webViewHostApi != null) {
basicMessageChannel24.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda6
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$23(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel24.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel25 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewHostApi.setBackgroundColor", getCodec());
if (webViewHostApi != null) {
basicMessageChannel25.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewHostApi$$ExternalSyntheticLambda7
public final GeneratedAndroidWebView.WebViewHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewHostApi.lambda$setup$24(this.f$0, obj, reply);
}
{
this.f$0 = webViewHostApi;
}
});
} else {
basicMessageChannel25.setMessageHandler(null);
}
}
static /* synthetic */ void lambda$setup$0(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Boolean bool = (Boolean) arrayList.get(1);
if (bool == null) {
throw new NullPointerException("useHybridCompositionArg unexpectedly null.");
}
webViewHostApi.create(Long.valueOf(number.longValue()), bool);
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$1(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
Number number;
HashMap hashMap = new HashMap();
try {
number = (Number) ((ArrayList) obj).get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
webViewHostApi.dispose(Long.valueOf(number.longValue()));
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$2(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
String str = (String) arrayList.get(1);
if (str == null) {
throw new NullPointerException("dataArg unexpectedly null.");
}
String str2 = (String) arrayList.get(2);
if (str2 == null) {
throw new NullPointerException("mimeTypeArg unexpectedly null.");
}
String str3 = (String) arrayList.get(3);
if (str3 == null) {
throw new NullPointerException("encodingArg unexpectedly null.");
}
webViewHostApi.loadData(Long.valueOf(number.longValue()), str, str2, str3);
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$3(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
String str = (String) arrayList.get(1);
if (str == null) {
throw new NullPointerException("baseUrlArg unexpectedly null.");
}
String str2 = (String) arrayList.get(2);
if (str2 == null) {
throw new NullPointerException("dataArg unexpectedly null.");
}
String str3 = (String) arrayList.get(3);
if (str3 == null) {
throw new NullPointerException("mimeTypeArg unexpectedly null.");
}
String str4 = (String) arrayList.get(4);
if (str4 == null) {
throw new NullPointerException("encodingArg unexpectedly null.");
}
String str5 = (String) arrayList.get(5);
if (str5 == null) {
throw new NullPointerException("historyUrlArg unexpectedly null.");
}
webViewHostApi.loadDataWithBaseUrl(Long.valueOf(number.longValue()), str, str2, str3, str4, str5);
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$4(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
String str = (String) arrayList.get(1);
if (str == null) {
throw new NullPointerException("urlArg unexpectedly null.");
}
Map<String, String> map = (Map) arrayList.get(2);
if (map == null) {
throw new NullPointerException("headersArg unexpectedly null.");
}
webViewHostApi.loadUrl(Long.valueOf(number.longValue()), str, map);
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$5(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
Number number;
HashMap hashMap = new HashMap();
try {
number = (Number) ((ArrayList) obj).get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
hashMap.put("result", webViewHostApi.getUrl(Long.valueOf(number.longValue())));
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$6(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
Number number;
HashMap hashMap = new HashMap();
try {
number = (Number) ((ArrayList) obj).get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
hashMap.put("result", webViewHostApi.canGoBack(Long.valueOf(number.longValue())));
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$7(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
Number number;
HashMap hashMap = new HashMap();
try {
number = (Number) ((ArrayList) obj).get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
hashMap.put("result", webViewHostApi.canGoForward(Long.valueOf(number.longValue())));
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$8(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
Number number;
HashMap hashMap = new HashMap();
try {
number = (Number) ((ArrayList) obj).get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
webViewHostApi.goBack(Long.valueOf(number.longValue()));
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$9(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
Number number;
HashMap hashMap = new HashMap();
try {
number = (Number) ((ArrayList) obj).get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
webViewHostApi.goForward(Long.valueOf(number.longValue()));
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$10(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
Number number;
HashMap hashMap = new HashMap();
try {
number = (Number) ((ArrayList) obj).get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
webViewHostApi.reload(Long.valueOf(number.longValue()));
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$11(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Boolean bool = (Boolean) arrayList.get(1);
if (bool == null) {
throw new NullPointerException("includeDiskFilesArg unexpectedly null.");
}
webViewHostApi.clearCache(Long.valueOf(number.longValue()), bool);
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$12(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
HashMap hashMap = new HashMap();
try {
ArrayList arrayList = (ArrayList) obj;
Number number = (Number) arrayList.get(0);
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
String str = (String) arrayList.get(1);
if (str == null) {
throw new NullPointerException("javascriptStringArg unexpectedly null.");
}
webViewHostApi.evaluateJavascript(Long.valueOf(number.longValue()), str, new Result<String>(hashMap, reply) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView.WebViewHostApi.1
final BasicMessageChannel.Reply val$reply;
final Map val$wrapped;
{
this.val$wrapped = hashMap;
this.val$reply = reply;
}
@Override // io.flutter.plugins.webviewflutter.GeneratedAndroidWebView.Result
public void success(String str2) {
this.val$wrapped.put("result", str2);
this.val$reply.reply(this.val$wrapped);
}
@Override // io.flutter.plugins.webviewflutter.GeneratedAndroidWebView.Result
public void error(Throwable th) {
this.val$wrapped.put("error", GeneratedAndroidWebView.wrapError(th));
this.val$reply.reply(this.val$wrapped);
}
});
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
reply.reply(hashMap);
}
}
static /* synthetic */ void lambda$setup$13(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
Number number;
HashMap hashMap = new HashMap();
try {
number = (Number) ((ArrayList) obj).get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
hashMap.put("result", webViewHostApi.getTitle(Long.valueOf(number.longValue())));
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$14(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Number number2 = (Number) arrayList.get(1);
if (number2 == null) {
throw new NullPointerException("xArg unexpectedly null.");
}
Number number3 = (Number) arrayList.get(2);
if (number3 == null) {
throw new NullPointerException("yArg unexpectedly null.");
}
webViewHostApi.scrollTo(Long.valueOf(number.longValue()), Long.valueOf(number2.longValue()), Long.valueOf(number3.longValue()));
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$15(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Number number2 = (Number) arrayList.get(1);
if (number2 == null) {
throw new NullPointerException("xArg unexpectedly null.");
}
Number number3 = (Number) arrayList.get(2);
if (number3 == null) {
throw new NullPointerException("yArg unexpectedly null.");
}
webViewHostApi.scrollBy(Long.valueOf(number.longValue()), Long.valueOf(number2.longValue()), Long.valueOf(number3.longValue()));
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$16(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
Number number;
HashMap hashMap = new HashMap();
try {
number = (Number) ((ArrayList) obj).get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
hashMap.put("result", webViewHostApi.getScrollX(Long.valueOf(number.longValue())));
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$17(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
Number number;
HashMap hashMap = new HashMap();
try {
number = (Number) ((ArrayList) obj).get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
hashMap.put("result", webViewHostApi.getScrollY(Long.valueOf(number.longValue())));
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$18(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
Boolean bool;
HashMap hashMap = new HashMap();
try {
bool = (Boolean) ((ArrayList) obj).get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (bool == null) {
throw new NullPointerException("enabledArg unexpectedly null.");
}
webViewHostApi.setWebContentsDebuggingEnabled(bool);
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$19(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Number number2 = (Number) arrayList.get(1);
if (number2 == null) {
throw new NullPointerException("webViewClientInstanceIdArg unexpectedly null.");
}
webViewHostApi.setWebViewClient(Long.valueOf(number.longValue()), Long.valueOf(number2.longValue()));
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$20(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Number number2 = (Number) arrayList.get(1);
if (number2 == null) {
throw new NullPointerException("javaScriptChannelInstanceIdArg unexpectedly null.");
}
webViewHostApi.addJavaScriptChannel(Long.valueOf(number.longValue()), Long.valueOf(number2.longValue()));
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$21(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Number number2 = (Number) arrayList.get(1);
if (number2 == null) {
throw new NullPointerException("javaScriptChannelInstanceIdArg unexpectedly null.");
}
webViewHostApi.removeJavaScriptChannel(Long.valueOf(number.longValue()), Long.valueOf(number2.longValue()));
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$22(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Number number2 = (Number) arrayList.get(1);
if (number2 == null) {
throw new NullPointerException("listenerInstanceIdArg unexpectedly null.");
}
webViewHostApi.setDownloadListener(Long.valueOf(number.longValue()), Long.valueOf(number2.longValue()));
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$23(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Number number2 = (Number) arrayList.get(1);
if (number2 == null) {
throw new NullPointerException("clientInstanceIdArg unexpectedly null.");
}
webViewHostApi.setWebChromeClient(Long.valueOf(number.longValue()), Long.valueOf(number2.longValue()));
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$24(WebViewHostApi webViewHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Number number2 = (Number) arrayList.get(1);
if (number2 == null) {
throw new NullPointerException("colorArg unexpectedly null.");
}
webViewHostApi.setBackgroundColor(Long.valueOf(number.longValue()), Long.valueOf(number2.longValue()));
hashMap.put("result", null);
reply.reply(hashMap);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes6.dex */
public static class WebSettingsHostApiCodec extends StandardMessageCodec {
public static final WebSettingsHostApiCodec INSTANCE = new WebSettingsHostApiCodec();
private WebSettingsHostApiCodec() {
}
}
/* loaded from: classes6.dex */
public interface WebSettingsHostApi {
void create(Long l, Long l2);
void dispose(Long l);
void setBuiltInZoomControls(Long l, Boolean bool);
void setDisplayZoomControls(Long l, Boolean bool);
void setDomStorageEnabled(Long l, Boolean bool);
void setJavaScriptCanOpenWindowsAutomatically(Long l, Boolean bool);
void setJavaScriptEnabled(Long l, Boolean bool);
void setLoadWithOverviewMode(Long l, Boolean bool);
void setMediaPlaybackRequiresUserGesture(Long l, Boolean bool);
void setSupportMultipleWindows(Long l, Boolean bool);
void setSupportZoom(Long l, Boolean bool);
void setUseWideViewPort(Long l, Boolean bool);
void setUserAgentString(Long l, String str);
static MessageCodec<Object> getCodec() {
return WebSettingsHostApiCodec.INSTANCE;
}
static void setup(BinaryMessenger binaryMessenger, final WebSettingsHostApi webSettingsHostApi) {
BasicMessageChannel basicMessageChannel = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebSettingsHostApi.create", getCodec());
if (webSettingsHostApi != null) {
basicMessageChannel.setMessageHandler(new BasicMessageChannel.MessageHandler(webSettingsHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebSettingsHostApi$$ExternalSyntheticLambda0
public final GeneratedAndroidWebView.WebSettingsHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebSettingsHostApi.lambda$setup$0(this.f$0, obj, reply);
}
{
this.f$0 = webSettingsHostApi;
}
});
} else {
basicMessageChannel.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel2 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebSettingsHostApi.dispose", getCodec());
if (webSettingsHostApi != null) {
basicMessageChannel2.setMessageHandler(new BasicMessageChannel.MessageHandler(webSettingsHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebSettingsHostApi$$ExternalSyntheticLambda7
public final GeneratedAndroidWebView.WebSettingsHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebSettingsHostApi.lambda$setup$1(this.f$0, obj, reply);
}
{
this.f$0 = webSettingsHostApi;
}
});
} else {
basicMessageChannel2.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel3 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebSettingsHostApi.setDomStorageEnabled", getCodec());
if (webSettingsHostApi != null) {
basicMessageChannel3.setMessageHandler(new BasicMessageChannel.MessageHandler(webSettingsHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebSettingsHostApi$$ExternalSyntheticLambda8
public final GeneratedAndroidWebView.WebSettingsHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebSettingsHostApi.lambda$setup$2(this.f$0, obj, reply);
}
{
this.f$0 = webSettingsHostApi;
}
});
} else {
basicMessageChannel3.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel4 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebSettingsHostApi.setJavaScriptCanOpenWindowsAutomatically", getCodec());
if (webSettingsHostApi != null) {
basicMessageChannel4.setMessageHandler(new BasicMessageChannel.MessageHandler(webSettingsHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebSettingsHostApi$$ExternalSyntheticLambda9
public final GeneratedAndroidWebView.WebSettingsHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebSettingsHostApi.lambda$setup$3(this.f$0, obj, reply);
}
{
this.f$0 = webSettingsHostApi;
}
});
} else {
basicMessageChannel4.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel5 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebSettingsHostApi.setSupportMultipleWindows", getCodec());
if (webSettingsHostApi != null) {
basicMessageChannel5.setMessageHandler(new BasicMessageChannel.MessageHandler(webSettingsHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebSettingsHostApi$$ExternalSyntheticLambda10
public final GeneratedAndroidWebView.WebSettingsHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebSettingsHostApi.lambda$setup$4(this.f$0, obj, reply);
}
{
this.f$0 = webSettingsHostApi;
}
});
} else {
basicMessageChannel5.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel6 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebSettingsHostApi.setJavaScriptEnabled", getCodec());
if (webSettingsHostApi != null) {
basicMessageChannel6.setMessageHandler(new BasicMessageChannel.MessageHandler(webSettingsHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebSettingsHostApi$$ExternalSyntheticLambda11
public final GeneratedAndroidWebView.WebSettingsHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebSettingsHostApi.lambda$setup$5(this.f$0, obj, reply);
}
{
this.f$0 = webSettingsHostApi;
}
});
} else {
basicMessageChannel6.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel7 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebSettingsHostApi.setUserAgentString", getCodec());
if (webSettingsHostApi != null) {
basicMessageChannel7.setMessageHandler(new BasicMessageChannel.MessageHandler(webSettingsHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebSettingsHostApi$$ExternalSyntheticLambda12
public final GeneratedAndroidWebView.WebSettingsHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebSettingsHostApi.lambda$setup$6(this.f$0, obj, reply);
}
{
this.f$0 = webSettingsHostApi;
}
});
} else {
basicMessageChannel7.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel8 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebSettingsHostApi.setMediaPlaybackRequiresUserGesture", getCodec());
if (webSettingsHostApi != null) {
basicMessageChannel8.setMessageHandler(new BasicMessageChannel.MessageHandler(webSettingsHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebSettingsHostApi$$ExternalSyntheticLambda1
public final GeneratedAndroidWebView.WebSettingsHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebSettingsHostApi.lambda$setup$7(this.f$0, obj, reply);
}
{
this.f$0 = webSettingsHostApi;
}
});
} else {
basicMessageChannel8.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel9 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebSettingsHostApi.setSupportZoom", getCodec());
if (webSettingsHostApi != null) {
basicMessageChannel9.setMessageHandler(new BasicMessageChannel.MessageHandler(webSettingsHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebSettingsHostApi$$ExternalSyntheticLambda2
public final GeneratedAndroidWebView.WebSettingsHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebSettingsHostApi.lambda$setup$8(this.f$0, obj, reply);
}
{
this.f$0 = webSettingsHostApi;
}
});
} else {
basicMessageChannel9.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel10 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebSettingsHostApi.setLoadWithOverviewMode", getCodec());
if (webSettingsHostApi != null) {
basicMessageChannel10.setMessageHandler(new BasicMessageChannel.MessageHandler(webSettingsHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebSettingsHostApi$$ExternalSyntheticLambda3
public final GeneratedAndroidWebView.WebSettingsHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebSettingsHostApi.lambda$setup$9(this.f$0, obj, reply);
}
{
this.f$0 = webSettingsHostApi;
}
});
} else {
basicMessageChannel10.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel11 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebSettingsHostApi.setUseWideViewPort", getCodec());
if (webSettingsHostApi != null) {
basicMessageChannel11.setMessageHandler(new BasicMessageChannel.MessageHandler(webSettingsHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebSettingsHostApi$$ExternalSyntheticLambda4
public final GeneratedAndroidWebView.WebSettingsHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebSettingsHostApi.lambda$setup$10(this.f$0, obj, reply);
}
{
this.f$0 = webSettingsHostApi;
}
});
} else {
basicMessageChannel11.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel12 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebSettingsHostApi.setDisplayZoomControls", getCodec());
if (webSettingsHostApi != null) {
basicMessageChannel12.setMessageHandler(new BasicMessageChannel.MessageHandler(webSettingsHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebSettingsHostApi$$ExternalSyntheticLambda5
public final GeneratedAndroidWebView.WebSettingsHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebSettingsHostApi.lambda$setup$11(this.f$0, obj, reply);
}
{
this.f$0 = webSettingsHostApi;
}
});
} else {
basicMessageChannel12.setMessageHandler(null);
}
BasicMessageChannel basicMessageChannel13 = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebSettingsHostApi.setBuiltInZoomControls", getCodec());
if (webSettingsHostApi != null) {
basicMessageChannel13.setMessageHandler(new BasicMessageChannel.MessageHandler(webSettingsHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebSettingsHostApi$$ExternalSyntheticLambda6
public final GeneratedAndroidWebView.WebSettingsHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebSettingsHostApi.lambda$setup$12(this.f$0, obj, reply);
}
{
this.f$0 = webSettingsHostApi;
}
});
} else {
basicMessageChannel13.setMessageHandler(null);
}
}
static /* synthetic */ void lambda$setup$0(WebSettingsHostApi webSettingsHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Number number2 = (Number) arrayList.get(1);
if (number2 == null) {
throw new NullPointerException("webViewInstanceIdArg unexpectedly null.");
}
webSettingsHostApi.create(Long.valueOf(number.longValue()), Long.valueOf(number2.longValue()));
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$1(WebSettingsHostApi webSettingsHostApi, Object obj, BasicMessageChannel.Reply reply) {
Number number;
HashMap hashMap = new HashMap();
try {
number = (Number) ((ArrayList) obj).get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
webSettingsHostApi.dispose(Long.valueOf(number.longValue()));
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$2(WebSettingsHostApi webSettingsHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Boolean bool = (Boolean) arrayList.get(1);
if (bool == null) {
throw new NullPointerException("flagArg unexpectedly null.");
}
webSettingsHostApi.setDomStorageEnabled(Long.valueOf(number.longValue()), bool);
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$3(WebSettingsHostApi webSettingsHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Boolean bool = (Boolean) arrayList.get(1);
if (bool == null) {
throw new NullPointerException("flagArg unexpectedly null.");
}
webSettingsHostApi.setJavaScriptCanOpenWindowsAutomatically(Long.valueOf(number.longValue()), bool);
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$4(WebSettingsHostApi webSettingsHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Boolean bool = (Boolean) arrayList.get(1);
if (bool == null) {
throw new NullPointerException("supportArg unexpectedly null.");
}
webSettingsHostApi.setSupportMultipleWindows(Long.valueOf(number.longValue()), bool);
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$5(WebSettingsHostApi webSettingsHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Boolean bool = (Boolean) arrayList.get(1);
if (bool == null) {
throw new NullPointerException("flagArg unexpectedly null.");
}
webSettingsHostApi.setJavaScriptEnabled(Long.valueOf(number.longValue()), bool);
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$6(WebSettingsHostApi webSettingsHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
String str = (String) arrayList.get(1);
if (str == null) {
throw new NullPointerException("userAgentStringArg unexpectedly null.");
}
webSettingsHostApi.setUserAgentString(Long.valueOf(number.longValue()), str);
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$7(WebSettingsHostApi webSettingsHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Boolean bool = (Boolean) arrayList.get(1);
if (bool == null) {
throw new NullPointerException("requireArg unexpectedly null.");
}
webSettingsHostApi.setMediaPlaybackRequiresUserGesture(Long.valueOf(number.longValue()), bool);
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$8(WebSettingsHostApi webSettingsHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Boolean bool = (Boolean) arrayList.get(1);
if (bool == null) {
throw new NullPointerException("supportArg unexpectedly null.");
}
webSettingsHostApi.setSupportZoom(Long.valueOf(number.longValue()), bool);
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$9(WebSettingsHostApi webSettingsHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Boolean bool = (Boolean) arrayList.get(1);
if (bool == null) {
throw new NullPointerException("overviewArg unexpectedly null.");
}
webSettingsHostApi.setLoadWithOverviewMode(Long.valueOf(number.longValue()), bool);
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$10(WebSettingsHostApi webSettingsHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Boolean bool = (Boolean) arrayList.get(1);
if (bool == null) {
throw new NullPointerException("useArg unexpectedly null.");
}
webSettingsHostApi.setUseWideViewPort(Long.valueOf(number.longValue()), bool);
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$11(WebSettingsHostApi webSettingsHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Boolean bool = (Boolean) arrayList.get(1);
if (bool == null) {
throw new NullPointerException("enabledArg unexpectedly null.");
}
webSettingsHostApi.setDisplayZoomControls(Long.valueOf(number.longValue()), bool);
hashMap.put("result", null);
reply.reply(hashMap);
}
static /* synthetic */ void lambda$setup$12(WebSettingsHostApi webSettingsHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Boolean bool = (Boolean) arrayList.get(1);
if (bool == null) {
throw new NullPointerException("enabledArg unexpectedly null.");
}
webSettingsHostApi.setBuiltInZoomControls(Long.valueOf(number.longValue()), bool);
hashMap.put("result", null);
reply.reply(hashMap);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes6.dex */
public static class JavaScriptChannelHostApiCodec extends StandardMessageCodec {
public static final JavaScriptChannelHostApiCodec INSTANCE = new JavaScriptChannelHostApiCodec();
private JavaScriptChannelHostApiCodec() {
}
}
/* loaded from: classes6.dex */
public interface JavaScriptChannelHostApi {
void create(Long l, String str);
static MessageCodec<Object> getCodec() {
return JavaScriptChannelHostApiCodec.INSTANCE;
}
static void setup(BinaryMessenger binaryMessenger, final JavaScriptChannelHostApi javaScriptChannelHostApi) {
BasicMessageChannel basicMessageChannel = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.JavaScriptChannelHostApi.create", getCodec());
if (javaScriptChannelHostApi != null) {
basicMessageChannel.setMessageHandler(new BasicMessageChannel.MessageHandler(javaScriptChannelHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$JavaScriptChannelHostApi$$ExternalSyntheticLambda0
public final GeneratedAndroidWebView.JavaScriptChannelHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.JavaScriptChannelHostApi.lambda$setup$0(this.f$0, obj, reply);
}
{
this.f$0 = javaScriptChannelHostApi;
}
});
} else {
basicMessageChannel.setMessageHandler(null);
}
}
static /* synthetic */ void lambda$setup$0(JavaScriptChannelHostApi javaScriptChannelHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
String str = (String) arrayList.get(1);
if (str == null) {
throw new NullPointerException("channelNameArg unexpectedly null.");
}
javaScriptChannelHostApi.create(Long.valueOf(number.longValue()), str);
hashMap.put("result", null);
reply.reply(hashMap);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes6.dex */
public static class JavaScriptChannelFlutterApiCodec extends StandardMessageCodec {
public static final JavaScriptChannelFlutterApiCodec INSTANCE = new JavaScriptChannelFlutterApiCodec();
private JavaScriptChannelFlutterApiCodec() {
}
}
/* loaded from: classes6.dex */
public static class JavaScriptChannelFlutterApi {
private final BinaryMessenger binaryMessenger;
/* loaded from: classes6.dex */
public interface Reply<T> {
void reply(T t);
}
public JavaScriptChannelFlutterApi(BinaryMessenger binaryMessenger) {
this.binaryMessenger = binaryMessenger;
}
static MessageCodec<Object> getCodec() {
return JavaScriptChannelFlutterApiCodec.INSTANCE;
}
public void dispose(Long l, final Reply<Void> reply) {
new BasicMessageChannel(this.binaryMessenger, "dev.flutter.pigeon.JavaScriptChannelFlutterApi.dispose", getCodec()).send(new ArrayList(Arrays.asList(l)), new BasicMessageChannel.Reply(reply) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$JavaScriptChannelFlutterApi$$ExternalSyntheticLambda1
public final GeneratedAndroidWebView.JavaScriptChannelFlutterApi.Reply f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.Reply
public final void reply(Object obj) {
this.f$0.reply(null);
}
{
this.f$0 = reply;
}
});
}
public void postMessage(Long l, String str, final Reply<Void> reply) {
new BasicMessageChannel(this.binaryMessenger, "dev.flutter.pigeon.JavaScriptChannelFlutterApi.postMessage", getCodec()).send(new ArrayList(Arrays.asList(l, str)), new BasicMessageChannel.Reply(reply) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$JavaScriptChannelFlutterApi$$ExternalSyntheticLambda0
public final GeneratedAndroidWebView.JavaScriptChannelFlutterApi.Reply f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.Reply
public final void reply(Object obj) {
this.f$0.reply(null);
}
{
this.f$0 = reply;
}
});
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes6.dex */
public static class WebViewClientHostApiCodec extends StandardMessageCodec {
public static final WebViewClientHostApiCodec INSTANCE = new WebViewClientHostApiCodec();
private WebViewClientHostApiCodec() {
}
}
/* loaded from: classes6.dex */
public interface WebViewClientHostApi {
void create(Long l, Boolean bool);
static MessageCodec<Object> getCodec() {
return WebViewClientHostApiCodec.INSTANCE;
}
static void setup(BinaryMessenger binaryMessenger, final WebViewClientHostApi webViewClientHostApi) {
BasicMessageChannel basicMessageChannel = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebViewClientHostApi.create", getCodec());
if (webViewClientHostApi != null) {
basicMessageChannel.setMessageHandler(new BasicMessageChannel.MessageHandler(webViewClientHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewClientHostApi$$ExternalSyntheticLambda0
public final GeneratedAndroidWebView.WebViewClientHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebViewClientHostApi.lambda$setup$0(this.f$0, obj, reply);
}
{
this.f$0 = webViewClientHostApi;
}
});
} else {
basicMessageChannel.setMessageHandler(null);
}
}
static /* synthetic */ void lambda$setup$0(WebViewClientHostApi webViewClientHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Boolean bool = (Boolean) arrayList.get(1);
if (bool == null) {
throw new NullPointerException("shouldOverrideUrlLoadingArg unexpectedly null.");
}
webViewClientHostApi.create(Long.valueOf(number.longValue()), bool);
hashMap.put("result", null);
reply.reply(hashMap);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes6.dex */
public static class WebViewClientFlutterApiCodec extends StandardMessageCodec {
public static final WebViewClientFlutterApiCodec INSTANCE = new WebViewClientFlutterApiCodec();
private WebViewClientFlutterApiCodec() {
}
@Override // io.flutter.plugin.common.StandardMessageCodec
public Object readValueOfType(byte b, ByteBuffer byteBuffer) {
if (b == Byte.MIN_VALUE) {
return WebResourceErrorData.fromMap((Map) readValue(byteBuffer));
}
if (b == -127) {
return WebResourceRequestData.fromMap((Map) readValue(byteBuffer));
}
return super.readValueOfType(b, byteBuffer);
}
@Override // io.flutter.plugin.common.StandardMessageCodec
public void writeValue(ByteArrayOutputStream byteArrayOutputStream, Object obj) {
if (obj instanceof WebResourceErrorData) {
byteArrayOutputStream.write(128);
writeValue(byteArrayOutputStream, ((WebResourceErrorData) obj).toMap());
} else if (obj instanceof WebResourceRequestData) {
byteArrayOutputStream.write(129);
writeValue(byteArrayOutputStream, ((WebResourceRequestData) obj).toMap());
} else {
super.writeValue(byteArrayOutputStream, obj);
}
}
}
/* loaded from: classes6.dex */
public static class WebViewClientFlutterApi {
private final BinaryMessenger binaryMessenger;
/* loaded from: classes6.dex */
public interface Reply<T> {
void reply(T t);
}
public WebViewClientFlutterApi(BinaryMessenger binaryMessenger) {
this.binaryMessenger = binaryMessenger;
}
static MessageCodec<Object> getCodec() {
return WebViewClientFlutterApiCodec.INSTANCE;
}
public void dispose(Long l, final Reply<Void> reply) {
new BasicMessageChannel(this.binaryMessenger, "dev.flutter.pigeon.WebViewClientFlutterApi.dispose", getCodec()).send(new ArrayList(Arrays.asList(l)), new BasicMessageChannel.Reply(reply) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewClientFlutterApi$$ExternalSyntheticLambda3
public final GeneratedAndroidWebView.WebViewClientFlutterApi.Reply f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.Reply
public final void reply(Object obj) {
this.f$0.reply(null);
}
{
this.f$0 = reply;
}
});
}
public void onPageStarted(Long l, Long l2, String str, final Reply<Void> reply) {
new BasicMessageChannel(this.binaryMessenger, "dev.flutter.pigeon.WebViewClientFlutterApi.onPageStarted", getCodec()).send(new ArrayList(Arrays.asList(l, l2, str)), new BasicMessageChannel.Reply(reply) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewClientFlutterApi$$ExternalSyntheticLambda2
public final GeneratedAndroidWebView.WebViewClientFlutterApi.Reply f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.Reply
public final void reply(Object obj) {
this.f$0.reply(null);
}
{
this.f$0 = reply;
}
});
}
public void onPageFinished(Long l, Long l2, String str, final Reply<Void> reply) {
new BasicMessageChannel(this.binaryMessenger, "dev.flutter.pigeon.WebViewClientFlutterApi.onPageFinished", getCodec()).send(new ArrayList(Arrays.asList(l, l2, str)), new BasicMessageChannel.Reply(reply) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewClientFlutterApi$$ExternalSyntheticLambda5
public final GeneratedAndroidWebView.WebViewClientFlutterApi.Reply f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.Reply
public final void reply(Object obj) {
this.f$0.reply(null);
}
{
this.f$0 = reply;
}
});
}
public void onReceivedRequestError(Long l, Long l2, WebResourceRequestData webResourceRequestData, WebResourceErrorData webResourceErrorData, final Reply<Void> reply) {
new BasicMessageChannel(this.binaryMessenger, "dev.flutter.pigeon.WebViewClientFlutterApi.onReceivedRequestError", getCodec()).send(new ArrayList(Arrays.asList(l, l2, webResourceRequestData, webResourceErrorData)), new BasicMessageChannel.Reply(reply) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewClientFlutterApi$$ExternalSyntheticLambda0
public final GeneratedAndroidWebView.WebViewClientFlutterApi.Reply f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.Reply
public final void reply(Object obj) {
this.f$0.reply(null);
}
{
this.f$0 = reply;
}
});
}
public void onReceivedError(Long l, Long l2, Long l3, String str, String str2, final Reply<Void> reply) {
new BasicMessageChannel(this.binaryMessenger, "dev.flutter.pigeon.WebViewClientFlutterApi.onReceivedError", getCodec()).send(new ArrayList(Arrays.asList(l, l2, l3, str, str2)), new BasicMessageChannel.Reply(reply) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewClientFlutterApi$$ExternalSyntheticLambda6
public final GeneratedAndroidWebView.WebViewClientFlutterApi.Reply f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.Reply
public final void reply(Object obj) {
this.f$0.reply(null);
}
{
this.f$0 = reply;
}
});
}
public void requestLoading(Long l, Long l2, WebResourceRequestData webResourceRequestData, final Reply<Void> reply) {
new BasicMessageChannel(this.binaryMessenger, "dev.flutter.pigeon.WebViewClientFlutterApi.requestLoading", getCodec()).send(new ArrayList(Arrays.asList(l, l2, webResourceRequestData)), new BasicMessageChannel.Reply(reply) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewClientFlutterApi$$ExternalSyntheticLambda1
public final GeneratedAndroidWebView.WebViewClientFlutterApi.Reply f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.Reply
public final void reply(Object obj) {
this.f$0.reply(null);
}
{
this.f$0 = reply;
}
});
}
public void urlLoading(Long l, Long l2, String str, final Reply<Void> reply) {
new BasicMessageChannel(this.binaryMessenger, "dev.flutter.pigeon.WebViewClientFlutterApi.urlLoading", getCodec()).send(new ArrayList(Arrays.asList(l, l2, str)), new BasicMessageChannel.Reply(reply) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebViewClientFlutterApi$$ExternalSyntheticLambda4
public final GeneratedAndroidWebView.WebViewClientFlutterApi.Reply f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.Reply
public final void reply(Object obj) {
this.f$0.reply(null);
}
{
this.f$0 = reply;
}
});
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes6.dex */
public static class DownloadListenerHostApiCodec extends StandardMessageCodec {
public static final DownloadListenerHostApiCodec INSTANCE = new DownloadListenerHostApiCodec();
private DownloadListenerHostApiCodec() {
}
}
/* loaded from: classes6.dex */
public interface DownloadListenerHostApi {
void create(Long l);
static MessageCodec<Object> getCodec() {
return DownloadListenerHostApiCodec.INSTANCE;
}
static void setup(BinaryMessenger binaryMessenger, final DownloadListenerHostApi downloadListenerHostApi) {
BasicMessageChannel basicMessageChannel = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.DownloadListenerHostApi.create", getCodec());
if (downloadListenerHostApi != null) {
basicMessageChannel.setMessageHandler(new BasicMessageChannel.MessageHandler(downloadListenerHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$DownloadListenerHostApi$$ExternalSyntheticLambda0
public final GeneratedAndroidWebView.DownloadListenerHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.DownloadListenerHostApi.lambda$setup$0(this.f$0, obj, reply);
}
{
this.f$0 = downloadListenerHostApi;
}
});
} else {
basicMessageChannel.setMessageHandler(null);
}
}
static /* synthetic */ void lambda$setup$0(DownloadListenerHostApi downloadListenerHostApi, Object obj, BasicMessageChannel.Reply reply) {
Number number;
HashMap hashMap = new HashMap();
try {
number = (Number) ((ArrayList) obj).get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
downloadListenerHostApi.create(Long.valueOf(number.longValue()));
hashMap.put("result", null);
reply.reply(hashMap);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes6.dex */
public static class DownloadListenerFlutterApiCodec extends StandardMessageCodec {
public static final DownloadListenerFlutterApiCodec INSTANCE = new DownloadListenerFlutterApiCodec();
private DownloadListenerFlutterApiCodec() {
}
}
/* loaded from: classes6.dex */
public static class DownloadListenerFlutterApi {
private final BinaryMessenger binaryMessenger;
/* loaded from: classes6.dex */
public interface Reply<T> {
void reply(T t);
}
public DownloadListenerFlutterApi(BinaryMessenger binaryMessenger) {
this.binaryMessenger = binaryMessenger;
}
static MessageCodec<Object> getCodec() {
return DownloadListenerFlutterApiCodec.INSTANCE;
}
public void dispose(Long l, final Reply<Void> reply) {
new BasicMessageChannel(this.binaryMessenger, "dev.flutter.pigeon.DownloadListenerFlutterApi.dispose", getCodec()).send(new ArrayList(Arrays.asList(l)), new BasicMessageChannel.Reply(reply) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$DownloadListenerFlutterApi$$ExternalSyntheticLambda1
public final GeneratedAndroidWebView.DownloadListenerFlutterApi.Reply f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.Reply
public final void reply(Object obj) {
this.f$0.reply(null);
}
{
this.f$0 = reply;
}
});
}
public void onDownloadStart(Long l, String str, String str2, String str3, String str4, Long l2, final Reply<Void> reply) {
new BasicMessageChannel(this.binaryMessenger, "dev.flutter.pigeon.DownloadListenerFlutterApi.onDownloadStart", getCodec()).send(new ArrayList(Arrays.asList(l, str, str2, str3, str4, l2)), new BasicMessageChannel.Reply(reply) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$DownloadListenerFlutterApi$$ExternalSyntheticLambda0
public final GeneratedAndroidWebView.DownloadListenerFlutterApi.Reply f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.Reply
public final void reply(Object obj) {
this.f$0.reply(null);
}
{
this.f$0 = reply;
}
});
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes6.dex */
public static class WebChromeClientHostApiCodec extends StandardMessageCodec {
public static final WebChromeClientHostApiCodec INSTANCE = new WebChromeClientHostApiCodec();
private WebChromeClientHostApiCodec() {
}
}
/* loaded from: classes6.dex */
public interface WebChromeClientHostApi {
void create(Long l, Long l2);
static MessageCodec<Object> getCodec() {
return WebChromeClientHostApiCodec.INSTANCE;
}
static void setup(BinaryMessenger binaryMessenger, final WebChromeClientHostApi webChromeClientHostApi) {
BasicMessageChannel basicMessageChannel = new BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.WebChromeClientHostApi.create", getCodec());
if (webChromeClientHostApi != null) {
basicMessageChannel.setMessageHandler(new BasicMessageChannel.MessageHandler(webChromeClientHostApi) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebChromeClientHostApi$$ExternalSyntheticLambda0
public final GeneratedAndroidWebView.WebChromeClientHostApi f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.MessageHandler
public final void onMessage(Object obj, BasicMessageChannel.Reply reply) {
GeneratedAndroidWebView.WebChromeClientHostApi.lambda$setup$0(this.f$0, obj, reply);
}
{
this.f$0 = webChromeClientHostApi;
}
});
} else {
basicMessageChannel.setMessageHandler(null);
}
}
static /* synthetic */ void lambda$setup$0(WebChromeClientHostApi webChromeClientHostApi, Object obj, BasicMessageChannel.Reply reply) {
ArrayList arrayList;
Number number;
HashMap hashMap = new HashMap();
try {
arrayList = (ArrayList) obj;
number = (Number) arrayList.get(0);
} catch (Error | RuntimeException e) {
hashMap.put("error", GeneratedAndroidWebView.wrapError(e));
}
if (number == null) {
throw new NullPointerException("instanceIdArg unexpectedly null.");
}
Number number2 = (Number) arrayList.get(1);
if (number2 == null) {
throw new NullPointerException("webViewClientInstanceIdArg unexpectedly null.");
}
webChromeClientHostApi.create(Long.valueOf(number.longValue()), Long.valueOf(number2.longValue()));
hashMap.put("result", null);
reply.reply(hashMap);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes6.dex */
public static class WebChromeClientFlutterApiCodec extends StandardMessageCodec {
public static final WebChromeClientFlutterApiCodec INSTANCE = new WebChromeClientFlutterApiCodec();
private WebChromeClientFlutterApiCodec() {
}
}
/* loaded from: classes6.dex */
public static class WebChromeClientFlutterApi {
private final BinaryMessenger binaryMessenger;
/* loaded from: classes6.dex */
public interface Reply<T> {
void reply(T t);
}
public WebChromeClientFlutterApi(BinaryMessenger binaryMessenger) {
this.binaryMessenger = binaryMessenger;
}
static MessageCodec<Object> getCodec() {
return WebChromeClientFlutterApiCodec.INSTANCE;
}
public void dispose(Long l, final Reply<Void> reply) {
new BasicMessageChannel(this.binaryMessenger, "dev.flutter.pigeon.WebChromeClientFlutterApi.dispose", getCodec()).send(new ArrayList(Arrays.asList(l)), new BasicMessageChannel.Reply(reply) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebChromeClientFlutterApi$$ExternalSyntheticLambda0
public final GeneratedAndroidWebView.WebChromeClientFlutterApi.Reply f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.Reply
public final void reply(Object obj) {
this.f$0.reply(null);
}
{
this.f$0 = reply;
}
});
}
public void onProgressChanged(Long l, Long l2, Long l3, final Reply<Void> reply) {
new BasicMessageChannel(this.binaryMessenger, "dev.flutter.pigeon.WebChromeClientFlutterApi.onProgressChanged", getCodec()).send(new ArrayList(Arrays.asList(l, l2, l3)), new BasicMessageChannel.Reply(reply) { // from class: io.flutter.plugins.webviewflutter.GeneratedAndroidWebView$WebChromeClientFlutterApi$$ExternalSyntheticLambda1
public final GeneratedAndroidWebView.WebChromeClientFlutterApi.Reply f$0;
@Override // io.flutter.plugin.common.BasicMessageChannel.Reply
public final void reply(Object obj) {
this.f$0.reply(null);
}
{
this.f$0 = reply;
}
});
}
}
/* JADX INFO: Access modifiers changed from: private */
public static Map<String, Object> wrapError(Throwable th) {
HashMap hashMap = new HashMap();
hashMap.put("message", th.toString());
hashMap.put("code", th.getClass().getSimpleName());
hashMap.put(ErrorBundle.DETAIL_ENTRY, null);
return hashMap;
}
}