Flutter Engine
FlutterViewController.mm File Reference
#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterViewController_Internal.h"
#include <memory>
#include "flutter/fml/memory/weak_ptr.h"
#include "flutter/fml/message_loop.h"
#include "flutter/fml/platform/darwin/platform_version.h"
#include "flutter/fml/platform/darwin/scoped_nsobject.h"
#include "flutter/runtime/ptrace_check.h"
#include "flutter/shell/common/thread_host.h"
#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterBinaryMessengerRelay.h"
#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterChannelKeyResponder.h"
#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterEmbedderKeyResponder.h"
#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterEngine_Internal.h"
#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterKeyPrimaryResponder.h"
#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterKeyboardManager.h"
#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformPlugin.h"
#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews_Internal.h"
#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterTextInputDelegate.h"
#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.h"
#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterView.h"
#import "flutter/shell/platform/darwin/ios/framework/Source/platform_message_response_darwin.h"
#import "flutter/shell/platform/darwin/ios/platform_view_ios.h"
#import "flutter/shell/platform/embedder/embedder.h"

Go to the source code of this file.

Classes

struct  MouseState
 
category  UITraitCollection(MethodsFromNewerSDK)
 

Macros

#define FML_USED_ON_EMBEDDER
 

Typedefs

typedef struct MouseState MouseState
 
typedef enum UIAccessibilityContrast UIAccessibilityContrast
 

Enumerations

enum  UIAccessibilityContrast : NSInteger {
  UIAccessibilityContrastUnspecified = 0,
  UIAccessibilityContrastNormal = 1,
  UIAccessibilityContrastHigh = 2,
  UIAccessibilityContrastUnspecified = 0,
  UIAccessibilityContrastNormal = 1,
  UIAccessibilityContrastHigh = 2
}
 

Variables

static constexpr int kMicrosecondsPerSecond = 1000 * 1000
 
static constexpr CGFloat kScrollViewContentSize = 2.0
 
NSNotificationName const FlutterSemanticsUpdateNotification = @"@"FlutterSemanticsUpdate"
 
NSNotificationName const FlutterViewControllerWillDealloc = @"@"FlutterViewControllerWillDealloc"
 
NSNotificationName const FlutterViewControllerHideHomeIndicator
 
NSNotificationName const FlutterViewControllerShowHomeIndicator
 
fml::scoped_nsobject< FlutterEngine_engine
 
fml::scoped_nsobject< FlutterView_flutterView
 
fml::scoped_nsobject< UIView > _splashScreenView
 
fml::ScopedBlock< void(^)(void)> _flutterViewRenderedCallback
 
UIInterfaceOrientationMask _orientationPreferences
 
UIStatusBarStyle _statusBarStyle
 
flutter::ViewportMetrics _viewportMetrics
 
BOOL _initialized
 
BOOL _viewOpaque
 
BOOL _engineNeedsLaunch
 
fml::scoped_nsobject< NSMutableSet< NSNumber * > > _ongoingTouches
 
fml::scoped_nsobject< UIScrollView > _scrollView
 
fml::scoped_nsobject< UIPointerInteraction > _pointerInteraction API_AVAILABLE (ios(13.4))
 
MouseState _mouseState
 

Macro Definition Documentation

◆ FML_USED_ON_EMBEDDER

#define FML_USED_ON_EMBEDDER

Definition at line 5 of file FlutterViewController.mm.

Typedef Documentation

◆ MouseState

typedef struct MouseState MouseState

◆ UIAccessibilityContrast

Enumeration Type Documentation

◆ UIAccessibilityContrast

enum UIAccessibilityContrast : NSInteger
Enumerator
UIAccessibilityContrastUnspecified 
UIAccessibilityContrastNormal 
UIAccessibilityContrastHigh 
UIAccessibilityContrastUnspecified 
UIAccessibilityContrastNormal 
UIAccessibilityContrastHigh 

Definition at line 82 of file FlutterViewController.mm.

Variable Documentation

◆ _engine

◆ _engineNeedsLaunch

◆ _flutterView

◆ _flutterViewRenderedCallback

fml::ScopedBlock<void (^)(void)> _flutterViewRenderedCallback

◆ _initialized

BOOL _initialized

Definition at line 105 of file FlutterViewController.mm.

Referenced by FlutterViewController::initWithCoder:.

◆ _mouseState

◆ _ongoingTouches

fml::scoped_nsobject<NSMutableSet<NSNumber*> > _ongoingTouches

◆ _orientationPreferences

UIInterfaceOrientationMask _orientationPreferences

◆ _scrollView

◆ _splashScreenView

◆ _statusBarStyle

UIStatusBarStyle _statusBarStyle

◆ _viewOpaque

BOOL _viewOpaque

Definition at line 106 of file FlutterViewController.mm.

Referenced by FlutterViewController::initWithCoder:.

◆ _viewportMetrics

◆ API_AVAILABLE

◆ FlutterSemanticsUpdateNotification

NSNotificationName const FlutterSemanticsUpdateNotification = @"@"FlutterSemanticsUpdate"

The name used for semantic update notifications via NSNotificationCenter.

The object passed as the sender is the FlutterViewController associated with the update.

Definition at line 35 of file FlutterViewController.mm.

Referenced by flutter::PlatformViewIOS::SetSemanticsEnabled().

◆ FlutterViewControllerHideHomeIndicator

NSNotificationName const FlutterViewControllerHideHomeIndicator
Initial value:
=
@"@"FlutterViewControllerHideHomeIndicator"

Definition at line 37 of file FlutterViewController.mm.

◆ FlutterViewControllerShowHomeIndicator

NSNotificationName const FlutterViewControllerShowHomeIndicator
Initial value:
=
@"@"FlutterViewControllerShowHomeIndicator"

Definition at line 39 of file FlutterViewController.mm.

◆ FlutterViewControllerWillDealloc

NSNotificationName const FlutterViewControllerWillDealloc = @"@"FlutterViewControllerWillDealloc"

◆ kMicrosecondsPerSecond

constexpr int kMicrosecondsPerSecond = 1000 * 1000
static

◆ kScrollViewContentSize

constexpr CGFloat kScrollViewContentSize = 2.0
static