FLTWebViewFlutterPlugin.m 637 B

123456789101112131415161718
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #import "FLTWebViewFlutterPlugin.h"
  5. #import "FLTCookieManager.h"
  6. #import "FlutterWebView.h"
  7. @implementation FLTWebViewFlutterPlugin
  8. + (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
  9. FLTWebViewFactory* webviewFactory =
  10. [[FLTWebViewFactory alloc] initWithMessenger:registrar.messenger];
  11. [registrar registerViewFactory:webviewFactory withId:@"plugins.flutter.io/webview"];
  12. [FLTCookieManager registerWithRegistrar:registrar];
  13. }
  14. @end