Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
io.flutter.plugin.platform.PlatformViewRegistry Interface Reference
Inheritance diagram for io.flutter.plugin.platform.PlatformViewRegistry:
io.flutter.plugin.platform.PlatformViewRegistryImpl

Public Member Functions

boolean registerViewFactory (@NonNull String viewTypeId, @NonNull PlatformViewFactory factory)
 

Detailed Description

Registry for platform view factories.

Plugins can register factories for specific view types.

Definition at line 14 of file PlatformViewRegistry.java.

Member Function Documentation

◆ registerViewFactory()

boolean io.flutter.plugin.platform.PlatformViewRegistry.registerViewFactory ( @NonNull String  viewTypeId,
@NonNull PlatformViewFactory  factory 
)

Registers a factory for a platform view.

Parameters
viewTypeIdunique identifier for the platform view's type.
factoryfactory for creating platform views of the specified type.
Returns
true if succeeded, false if a factory is already registered for viewTypeId.

The documentation for this interface was generated from the following file: