JavaScriptChannelHandler.h 491 B

1234567891011121314151617
  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 <Flutter/Flutter.h>
  5. #import <WebKit/WebKit.h>
  6. NS_ASSUME_NONNULL_BEGIN
  7. @interface FLTJavaScriptChannel : NSObject <WKScriptMessageHandler>
  8. - (instancetype)initWithMethodChannel:(FlutterMethodChannel*)methodChannel
  9. javaScriptChannelName:(NSString*)javaScriptChannelName;
  10. @end
  11. NS_ASSUME_NONNULL_END