Flutter macOS Embedder
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
FlutterViewEngineProvider.mm
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 
8 
9 @interface FlutterViewEngineProvider () {
11 }
12 
13 @end
14 
15 @implementation FlutterViewEngineProvider
16 
17 - (instancetype)initWithEngine:(FlutterEngine*)engine {
18  self = [super init];
19  if (self != nil) {
20  _engine = engine;
21  }
22  return self;
23 }
24 
25 - (nullable FlutterView*)viewForIdentifier:(FlutterViewIdentifier)viewIdentifier {
26  return [_engine viewControllerForIdentifier:viewIdentifier].flutterView;
27 }
28 
29 @end
int64_t FlutterViewIdentifier