Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
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
9
10#import "flutter/shell/platform/darwin/ios/InternalFlutterSwift/InternalFlutterSwift.h"
18
19namespace flutter {
20class PlatformViewsController;
21}
22
24// NOLINTNEXTLINE(readability-identifier-naming)
25extern NSNotificationName const FlutterViewControllerWillDealloc;
26
28// NOLINTNEXTLINE(readability-identifier-naming)
29extern NSNotificationName const FlutterViewControllerHideHomeIndicator;
30
32// NOLINTNEXTLINE(readability-identifier-naming)
33extern NSNotificationName const FlutterViewControllerShowHomeIndicator;
34
35typedef 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
43typedef void (^FlutterKeyboardAnimationCallback)(NSTimeInterval);
44
45@interface FlutterViewController () <FlutterViewResponder>
46
47@property(nonatomic, readonly) BOOL isPresentingViewController;
48@property(nonatomic, readonly) BOOL isVoiceOverRunning;
49@property(nonatomic, strong) FlutterKeyboardManager* keyboardManager;
50@property(nonatomic, strong) FlutterKeyboardInsetManager* keyboardInsetManager;
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@property(nonatomic, strong) FlutterAccessibilityFeatures* accessibilityFeatures;
65
66- (FlutterRestorationPlugin*)restorationPlugin;
68
69// Accepts keypress events, and then calls |nextAction| if the event was not
70// handled.
71- (void)handlePressEvent:(FlutterUIPressProxy*)press
72 nextAction:(void (^)())nextAction API_AVAILABLE(ios(13.4));
73- (void)addInternalPlugins;
74- (void)deregisterNotifications;
75
76- (BOOL)supportsShowingSystemContextMenu;
77- (BOOL)stateIsActive;
78- (BOOL)stateIsBackground;
79@end
80
81#endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERVIEWCONTROLLER_INTERNAL_H_
#define FLUTTER_DARWIN_EXPORT
Coordinates the animation of the bottom viewport inset in response to system keyboard visibility chan...
FlutterTextInputPlugin * textInputPlugin
FLUTTER_DARWIN_EXPORT NSNotificationName const FlutterViewControllerHideHomeIndicator
typedef NS_ENUM(NSInteger, FlutterKeyboardMode)
FLUTTER_DARWIN_EXPORT NSNotificationName const FlutterViewControllerShowHomeIndicator
FLUTTER_DARWIN_EXPORT NSNotificationName const FlutterViewControllerWillDealloc
void(^ FlutterKeyboardAnimationCallback)(NSTimeInterval)
int BOOL