Package io.flutter.plugin.platform

# Interface PlatformViewRegistry

All Known Implementing Classes:
  `PlatformViewRegistryImpl`

public interface PlatformViewRegistry
Registry for platform view factories.

Plugins can register factories for specific view types.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `registerViewFactory(String viewTypeId, PlatformViewFactory factory)`
  Registers a factory for a platform view.

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