Flutter Engine
FlutterViewController_Internal.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 #import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterViewController.h"
6 
7 #import "flutter/shell/platform/darwin/macos/framework/Source/FlutterKeySecondaryResponder.h"
8 #import "flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.h"
9 #import "flutter/shell/platform/darwin/macos/framework/Source/FlutterView.h"
10 
11 @interface FlutterViewController ()
12 
13 // The FlutterView for this view controller.
14 @property(nonatomic, readonly, nullable) FlutterView* flutterView;
15 
16 /**
17  * This just returns the NSPasteboard so that it can be mocked in the tests.
18  */
19 @property(nonatomic, readonly, nonnull) NSPasteboard* pasteboard;
20 
21 /**
22  * The text input plugin that handles text editing state for text fields.
23  */
24 @property(nonatomic, readonly, nonnull) FlutterTextInputPlugin* textInputPlugin;
25 
26 /**
27  * Initializes this FlutterViewController with the specified `FlutterEngine`.
28  *
29  * The initialized viewcontroller will attach itself to the engine as part of this process.
30  *
31  * @param engine The `FlutterEngine` instance to attach to. Cannot be nil.
32  * @param nibName The NIB name to initialize this controller with.
33  * @param nibBundle The NIB bundle.
34  */
35 - (nonnull instancetype)initWithEngine:(nonnull FlutterEngine*)engine
36  nibName:(nullable NSString*)nibName
37  bundle:(nullable NSBundle*)nibBundle NS_DESIGNATED_INITIALIZER;
38 
39 @end
40 
41 // Private methods made visible for testing
43 - (void)onAccessibilityStatusChanged:(nonnull NSNotification*)notification;
44 @end
FlutterTextInputPlugin * textInputPlugin