Flutter Engine
The Flutter Engine
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
8#include "flutter/fml/platform/darwin/weak_nsobject.h"
9#include "flutter/fml/time/time_point.h"
10
11#import "flutter/shell/platform/darwin/ios/framework/Headers/FlutterViewController.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/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
18namespace flutter {
19class FlutterPlatformViewsController;
20}
21
23// NOLINTNEXTLINE(readability-identifier-naming)
24extern NSNotificationName const FlutterViewControllerWillDealloc;
25
27// NOLINTNEXTLINE(readability-identifier-naming)
28extern NSNotificationName const FlutterViewControllerHideHomeIndicator;
29
31// NOLINTNEXTLINE(readability-identifier-naming)
32extern NSNotificationName const FlutterViewControllerShowHomeIndicator;
33
34typedef 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
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, retain) 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- (fml::WeakNSObject<FlutterViewController>)getWeakNSObject;
61- (std::shared_ptr<flutter::FlutterPlatformViewsController>&)platformViewsController;
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)addInternalPlugins;
70- (int32_t)accessibilityFlags;
71
73
74@end
75
76#endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERVIEWCONTROLLER_INTERNAL_H_
#define FLUTTER_DARWIN_EXPORT
BOOL prefersStatusBarHidden()
Whether the status bar is preferred hidden.
FlutterRestorationPlugin * restorationPlugin()
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)(fml::TimePoint)
Definition ref_ptr.h:256
int BOOL