| Flutter iOS Embedder |

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 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERVIEWCONTROLLER_INTERNAL_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERVIEWCONTROLLER_INTERNAL_H_
7
8 #import "flutter/shell/platform/darwin/ios/framework/Headers/FlutterViewController.h"
9
10 #include "flutter/fml/time/time_point.h"
11 #import "flutter/shell/platform/darwin/ios/InternalFlutterSwift/InternalFlutterSwift.h"
12 #import "flutter/shell/platform/darwin/ios/framework/Source/FlutterKeySecondaryResponder.h"
13 #import "flutter/shell/platform/darwin/ios/framework/Source/FlutterKeyboardManager.h"
14 #import "flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViewsController.h"
15 #import "flutter/shell/platform/darwin/ios/framework/Source/FlutterRestorationPlugin.h"
16 #import "flutter/shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.h"
17 #import "flutter/shell/platform/darwin/ios/framework/Source/FlutterViewResponder.h"
18
19 namespace flutter {
20 class PlatformViewsController;
21 }
22
23 FLUTTER_DARWIN_EXPORT
24 // NOLINTNEXTLINE(readability-identifier-naming)
25 extern NSNotificationName const FlutterViewControllerWillDealloc;
26
27 FLUTTER_DARWIN_EXPORT
28 // NOLINTNEXTLINE(readability-identifier-naming)
29 extern NSNotificationName const FlutterViewControllerHideHomeIndicator;
30
31 FLUTTER_DARWIN_EXPORT
32 // NOLINTNEXTLINE(readability-identifier-naming)
33 extern NSNotificationName const FlutterViewControllerShowHomeIndicator;
34
35 typedef NS_ENUM(NSInteger, FlutterKeyboardMode) {
36 // NOLINTBEGIN(readability-identifier-naming)
37 FlutterKeyboardModeHidden = 0,
38 FlutterKeyboardModeDocked = 1,
39 FlutterKeyboardModeFloating = 2,
40 // NOLINTEND(readability-identifier-naming)
41 };
42
43 typedef void (^FlutterKeyboardAnimationCallback)(fml::TimePoint);
44
45 @interface FlutterViewController () <FlutterViewResponder>
46
47 @property(class, nonatomic, readonly) BOOL accessibilityIsOnOffSwitchLabelsEnabled;
48 @property(nonatomic, readonly) BOOL isPresentingViewController;
49 @property(nonatomic, readonly) BOOL isVoiceOverRunning;
50 @property(nonatomic, strong) FlutterKeyboardManager* keyboardManager;
51 @property(nonatomic, readwrite) NSString* applicationLocale;
52
53 /**
54 * @brief Whether the status bar is preferred hidden.
55 *
56 * This overrides the |UIViewController:prefersStatusBarHidden|.
57 * This is ignored when `UIViewControllerBasedStatusBarAppearance` in info.plist
58 * of the app project is `false`.
59 */
60 @property(nonatomic, assign, readwrite) BOOL prefersStatusBarHidden;
61
62 @property(nonatomic, readonly) FlutterPlatformViewsController* platformViewsController;
63
64 - (FlutterRestorationPlugin*)restorationPlugin;
65 - (FlutterTextInputPlugin*)textInputPlugin;
66
67 // Accepts keypress events, and then calls |nextAction| if the event was not
68 // handled.
69 - (void)handlePressEvent:(FlutterUIPressProxy*)press
70 nextAction:(void (^)())nextAction API_AVAILABLE(ios(13.4));
71 - (void)addInternalPlugins;
72 - (void)deregisterNotifications;
73 - (int32_t)accessibilityFlags;
74
75 - (BOOL)supportsShowingSystemContextMenu;
76 - (BOOL)stateIsActive;
77 - (BOOL)stateIsBackground;
78 @end
79
80 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERVIEWCONTROLLER_INTERNAL_H_
FlutterKeySecondaryResponder.h
FlutterKeyboardManager.h
FLUTTER_DARWIN_EXPORT
#define FLUTTER_DARWIN_EXPORT
Definition: FlutterMacros.h:14
FlutterPlatformViewsController.h
FlutterRestorationPlugin.h
FlutterTextInputPlugin.h
textInputPlugin
FlutterTextInputPlugin * textInputPlugin
Definition: FlutterTextInputPluginTest.mm:137
FlutterViewController.h
FlutterViewControllerHideHomeIndicator
FLUTTER_DARWIN_EXPORT NSNotificationName const FlutterViewControllerHideHomeIndicator
Definition: FlutterViewController.mm:50
NS_ENUM
typedef NS_ENUM(NSInteger, FlutterKeyboardMode)
Definition: FlutterViewController_Internal.h:35
FlutterViewControllerShowHomeIndicator
FLUTTER_DARWIN_EXPORT NSNotificationName const FlutterViewControllerShowHomeIndicator
Definition: FlutterViewController.mm:52
FlutterViewControllerWillDealloc
FLUTTER_DARWIN_EXPORT NSNotificationName const FlutterViewControllerWillDealloc
Definition: FlutterViewController.mm:49
FlutterKeyboardAnimationCallback
void(^ FlutterKeyboardAnimationCallback)(fml::TimePoint)
Definition: FlutterViewController_Internal.h:43
FlutterViewResponder.h
FlutterKeyboardManager
Definition: FlutterKeyboardManager.h:54
FlutterPlatformViewsController
Definition: FlutterPlatformViewsController.h:31
FlutterRestorationPlugin
Definition: FlutterRestorationPlugin.h:13
FlutterTextInputPlugin
Definition: FlutterTextInputPlugin.h:34
FlutterViewController
Definition: FlutterViewController.h:57
flutter
Definition: accessibility_bridge.h:26
FlutterViewResponder-p
Definition: FlutterViewResponder.h:15