Flutter Engine
The Flutter Engine
shell
platform
darwin
macos
framework
Source
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
5
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterViewEngineProvider.h"
6
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterEngine_Internal.h"
7
#import "flutter/shell/platform/darwin/macos/framework/Source/FlutterViewController_Internal.h"
8
9
@interface
FlutterViewEngineProvider
() {
10
__weak
FlutterEngine
*
_engine
;
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
self
return self
Definition:
FlutterTextureRegistryRelay.mm:19
engine
FlutterEngine engine
Definition:
main.cc:68
FlutterEngine
Definition:
FlutterEngine.h:61
FlutterViewEngineProvider
Definition:
FlutterViewEngineProvider.h:18
FlutterViewEngineProvider::_engine
__weak FlutterEngine * _engine
Definition:
FlutterViewEngineProvider.mm:10
FlutterView
Definition:
FlutterView.h:35
FlutterViewIdentifier
int64_t FlutterViewIdentifier
Definition:
FlutterViewController.h:21
Generated on Sun Jun 23 2024 21:55:14 for Flutter Engine by
1.9.4