FlutterWebviewPlugin.m 584 B

123456789101112131415161718
  1. #import "FlutterWebviewPlugin.h"
  2. static NSString *const CHANNEL_NAME = @"flutter_webview_plugin";
  3. @implementation FlutterWebviewPlugin
  4. + (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar> *)registrar {
  5. FlutterMethodChannel *channel =
  6. [FlutterMethodChannel methodChannelWithName:CHANNEL_NAME binaryMessenger:registrar.messenger];
  7. [channel setMethodCallHandler:^(FlutterMethodCall *call, FlutterResult result) {
  8. NSString *method = [call method];
  9. NSDictionary *arguments = [call arguments];
  10. result(FlutterMethodNotImplemented);
  11. }];
  12. }
  13. @end