Package io.flutter.plugin.platform
Interface PlatformViewRegistry
-
public interface PlatformViewRegistryRegistry for platform view factories.Plugins can register factories for specific view types.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanregisterViewFactory(String viewTypeId, PlatformViewFactory factory)Registers a factory for a platform view.
-
-
-
Method Detail
-
registerViewFactory
boolean registerViewFactory(@NonNull String viewTypeId, @NonNull PlatformViewFactory factory)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.
-
-