public

class

PlatformViewPlugin

implements

FlutterPlugin

@Override

public

void

onAttachedToEngine

@NonNull

FlutterPluginBinding

binding

binding

getPlatformViewRegistry

()

registerViewFactory

"<platform-view-type>"

new

NativeViewFactory

());

@Override

public

void

onDetachedFromEngine

@NonNull

FlutterPluginBinding

binding

{}

For more information, see the API docs for:

FlutterPlugin

PlatformViewRegistry

PlatformViewFactory

PlatformView