| 12345678910111213141516171819202122232425 |
- #import "FlutterWebviewPlugin.h"
- @implementation FlutterWebviewPlugin {
- }
- - (instancetype)initWithController:(FlutterViewController *)controller {
- self = [super init];
- if (self) {
- FlutterMethodChannel *channel = [FlutterMethodChannel
- methodChannelWithName:@"flutter_webview_plugin"
- binaryMessenger:controller];
- [channel setMethodCallHandler:^(FlutterMethodCall *call,
- FlutterResult result) {
- if ([@"getPlatformVersion" isEqualToString:call.method]) {
- result([@"iOS " stringByAppendingString:[[UIDevice currentDevice]
- systemVersion]]);
- } else {
- result(FlutterMethodNotImplemented);
- }
- }];
- }
- return self;
- }
- @end
|