what-the-bank/sources/io/flutter/plugin/platform/PlatformViewRegistryImpl.java

25 lines
844 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package io.flutter.plugin.platform;
import java.util.HashMap;
import java.util.Map;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public class PlatformViewRegistryImpl implements PlatformViewRegistry {
private final Map<String, PlatformViewFactory> viewFactories = new HashMap();
@Override // io.flutter.plugin.platform.PlatformViewRegistry
public boolean registerViewFactory(String str, PlatformViewFactory platformViewFactory) {
if (this.viewFactories.containsKey(str)) {
return false;
}
this.viewFactories.put(str, platformViewFactory);
return true;
}
/* JADX INFO: Access modifiers changed from: package-private */
public PlatformViewFactory getFactory(String str) {
return this.viewFactories.get(str);
}
}