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/FlutterView.h"
8 
9 @interface FlutterViewController ()
10 
11 // The FlutterView for this view controller.
12 @property(nonatomic, readonly, nullable) FlutterView* flutterView;
13 
14 /**
15  * This just returns the NSPasteboard so that it can be mocked in the tests.
16  */
17 @property(nonatomic, readonly, nonnull) NSPasteboard* pasteboard;
18 
19 /**
20  * Adds a responder for keyboard events. Key up and key down events are forwarded to all added
21  * responders.
22  */
23 - (void)addKeyResponder:(nonnull NSResponder*)responder;
24 
25 /**
26  * Removes a responder for keyboard events.
27  */
28 - (void)removeKeyResponder:(nonnull NSResponder*)responder;
29 
30 @end