Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
FlutterViewEngineProvider.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter 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
5#ifndef FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERVIEWENGINEPROVIDER_H_
6#define FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERVIEWENGINEPROVIDER_H_
7
8#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterViewProvider.h"
9
10@class FlutterEngine;
11
12/**
13 * A facade over FlutterEngine that allows FlutterEngine's children components
14 * to query FlutterView.
15 *
16 * FlutterViewProvider only holds a weak reference to FlutterEngine.
17 */
19
20/**
21 * Create a FlutterViewProvider with the underlying engine.
22 */
23- (nonnull instancetype)initWithEngine:(nonnull __weak FlutterEngine*)engine;
24
25@end
26
27#endif // FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERVIEWENGINEPROVIDER_H_