];

[[

self

registrarForPlugin

@"<plugin-name>"

registerViewFactory

factory

withId:

@"<platform-view-type>"

];

return

super

application

application

didFinishLaunchingWithOptions

launchOptions

];

@end

For plugin registration,
modify the main plugin file
(for example, FLPlugin.m):

#import <Flutter/Flutter.h>
#import "FLNativeView.h"

@interface

FLPlugin

NSObject

FlutterPlugin

@end

@implementation

FLPlugin

void