Interface PlatformViewRegistry


public interface PlatformViewRegistry
Registry for platform view factories.

Plugins can register factories for specific view types.

  • Method Details

    • 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.