blob: eead0ece8ee139a3ac246ad5926f7572543261f1 [file]
#import "{{pluginClass}}.h"
@implementation {{pluginClass}} {
}
- (instancetype)initWithFlutterView:(FlutterViewController *)flutterView {
self = [super init];
if (self) {
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelNamed:@"{{projectName}}"
binaryMessenger:flutterView
codec:[FlutterStandardMethodCodec sharedInstance]];
[channel setMethodCallHandler:^(FlutterMethodCall *call,
FlutterResultReceiver result) {
if ([@"getPlatformVersion" isEqualToString:call.method]) {
result([@"iOS " stringByAppendingString:[[UIDevice currentDevice]
systemVersion]],
nil);
}
}];
}
return self;
}
@end