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

27 lines
1.0 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package io.flutter.plugins.webviewflutter;
import android.content.Context;
import io.flutter.plugin.common.StandardMessageCodec;
import io.flutter.plugin.platform.PlatformView;
import io.flutter.plugin.platform.PlatformViewFactory;
/* loaded from: classes6.dex */
class FlutterWebViewFactory extends PlatformViewFactory {
private final InstanceManager instanceManager;
/* JADX INFO: Access modifiers changed from: package-private */
public FlutterWebViewFactory(InstanceManager instanceManager) {
super(StandardMessageCodec.INSTANCE);
this.instanceManager = instanceManager;
}
@Override // io.flutter.plugin.platform.PlatformViewFactory
public PlatformView create(Context context, int i, Object obj) {
PlatformView platformView = (PlatformView) this.instanceManager.getInstance(((Integer) obj).intValue());
if (platformView != null) {
return platformView;
}
throw new IllegalStateException("Unable to find WebView instance: ".concat(String.valueOf(obj)));
}
}