blob: d8e0b19aab3f15fac0596efd0951ead79d16b5c9 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERVIEWENGINEPROVIDER_H_
#define FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERVIEWENGINEPROVIDER_H_
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterViewProvider.h"
@class FlutterEngine;
/**
* A facade over FlutterEngine that allows FlutterEngine's children components
* to query FlutterView.
*
* FlutterViewProvider only holds a weak reference to FlutterEngine.
*/
@interface FlutterViewEngineProvider : NSObject <FlutterViewProvider>
/**
* Create a FlutterViewProvider with the underlying engine.
*/
- (nonnull instancetype)initWithEngine:(nonnull __weak FlutterEngine*)engine;
@end
#endif // FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERVIEWENGINEPROVIDER_H_