25 lines
844 B
Java
25 lines
844 B
Java
|
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);
|
||
|
}
|
||
|
}
|