Package io.flutter.plugin.platform
Class PlatformViewRegistryImpl
java.lang.Object
io.flutter.plugin.platform.PlatformViewRegistryImpl
- All Implemented Interfaces:
PlatformViewRegistry
-
Method Summary
Modifier and TypeMethodDescriptionbooleanregisterViewFactory(String viewTypeId, PlatformViewFactory factory) Registers a factory for a platform view.
-
Method Details
-
registerViewFactory
Description copied from interface:PlatformViewRegistryRegisters a factory for a platform view.- Specified by:
registerViewFactoryin interfacePlatformViewRegistry- Parameters:
viewTypeId- unique identifier for the platform view's type.factory- factory for creating platform views of the specified type.- Returns:
- true if succeeded, false if a factory is already registered for viewTypeId.
-