Package io.flutter.plugin.platform

# Class PlatformViewRegistryImpl

java.lang.Object
io.flutter.plugin.platform.PlatformViewRegistryImpl

All Implemented Interfaces:
  `PlatformViewRegistry`

public class PlatformViewRegistryImpl extends Object implements PlatformViewRegistry

- ## Method Summary

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

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### registerViewFactory

    public boolean registerViewFactory(String viewTypeId, PlatformViewFactory factory)
    Description copied from interface: `PlatformViewRegistry`
    Registers a factory for a platform view.
    Specified by:
      `registerViewFactory` in interface `PlatformViewRegistry`
    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.