Flutter Engine
The Flutter Engine
Public Member Functions | Package Functions | List of all members
io.flutter.plugin.platform.PlatformViewRegistryImpl Class Reference
Inheritance diagram for io.flutter.plugin.platform.PlatformViewRegistryImpl:
io.flutter.plugin.platform.PlatformViewRegistry

Public Member Functions

boolean registerViewFactory (String viewTypeId, PlatformViewFactory factory)
 
- Public Member Functions inherited from io.flutter.plugin.platform.PlatformViewRegistry
boolean registerViewFactory (@NonNull String viewTypeId, @NonNull PlatformViewFactory factory)
 

Package Functions

 PlatformViewRegistryImpl ()
 
PlatformViewFactory getFactory (String viewTypeId)
 

Detailed Description

Definition at line 10 of file PlatformViewRegistryImpl.java.

Constructor & Destructor Documentation

◆ PlatformViewRegistryImpl()

io.flutter.plugin.platform.PlatformViewRegistryImpl.PlatformViewRegistryImpl ( )
inlinepackage

Definition at line 12 of file PlatformViewRegistryImpl.java.

12 {
13 viewFactories = new HashMap<>();
14 }

Member Function Documentation

◆ getFactory()

PlatformViewFactory io.flutter.plugin.platform.PlatformViewRegistryImpl.getFactory ( String  viewTypeId)
inlinepackage

Definition at line 26 of file PlatformViewRegistryImpl.java.

26 {
27 return viewFactories.get(viewTypeId);
28 }

◆ registerViewFactory()

boolean io.flutter.plugin.platform.PlatformViewRegistryImpl.registerViewFactory ( String  viewTypeId,
PlatformViewFactory  factory 
)
inline

Definition at line 20 of file PlatformViewRegistryImpl.java.

20 {
21 if (viewFactories.containsKey(viewTypeId)) return false;
22 viewFactories.put(viewTypeId, factory);
23 return true;
24 }

The documentation for this class was generated from the following file: