Package io.flutter.plugin.platform
Interface PlatformViewRegistry
public interface PlatformViewRegistry
Registry for platform view factories.
Plugins can register factories for specific view types.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
registerViewFactory
(String viewTypeId, PlatformViewFactory factory) Registers a factory for a platform view.
-
Method Details
-
registerViewFactory
Registers a factory for a platform view.- 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.
-