FlutterWebView.h 920 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2018 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 <Flutter/Flutter.h>
  5. #import <WebKit/WebKit.h>
  6. NS_ASSUME_NONNULL_BEGIN
  7. @interface FLTWebViewController : NSObject <FlutterPlatformView, WKUIDelegate>
  8. - (instancetype)initWithFrame:(CGRect)frame
  9. viewIdentifier:(int64_t)viewId
  10. arguments:(id _Nullable)args
  11. binaryMessenger:(NSObject<FlutterBinaryMessenger>*)messenger;
  12. - (UIView*)view;
  13. @end
  14. @interface FLTWebViewFactory : NSObject <FlutterPlatformViewFactory>
  15. - (instancetype)initWithMessenger:(NSObject<FlutterBinaryMessenger>*)messenger;
  16. @end
  17. /**
  18. * The WkWebView used for the plugin.
  19. *
  20. * This class overrides some methods in `WKWebView` to serve the needs for the plugin.
  21. */
  22. @interface FLTWKWebView : WKWebView
  23. @end
  24. NS_ASSUME_NONNULL_END