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