#include <FlutterViewController_Internal.h>
Private interface declaration for FlutterViewController.
Definition at line 67 of file FlutterViewController.mm.
◆ accessibilityFlags
| - (int32_t) accessibilityFlags |
|
|
|
◆ addInternalPlugins [1/2]
| - (void) addInternalPlugins |
|
|
|
Creates and registers plugins used by this view controller.
◆ addInternalPlugins [2/2]
| - (void) addInternalPlugins |
|
|
|
◆ API_AVAILABLE [1/5]
| - (UIHoverGestureRecognizer *hoverGestureRecognizer) API_AVAILABLE |
|
(ios(13.4)) |
|
|
◆ API_AVAILABLE [2/5]
| - (UIPanGestureRecognizer *discreteScrollingPanGestureRecognizer) API_AVAILABLE |
|
(ios(13.4)) |
|
|
◆ API_AVAILABLE [3/5]
| - (UIPanGestureRecognizer *continuousScrollingPanGestureRecognizer) API_AVAILABLE |
|
(ios(13.4)) |
|
|
◆ API_AVAILABLE [4/5]
| - (UIPinchGestureRecognizer *pinchGestureRecognizer) API_AVAILABLE |
|
(ios(13.4)) |
|
|
◆ API_AVAILABLE [5/5]
| - (UIRotationGestureRecognizer *rotationGestureRecognizer) API_AVAILABLE |
|
(ios(13.4)) |
|
|
◆ configureTrackingArea
| - (void) configureTrackingArea |
|
|
|
Updates |trackingArea| for the current tracking settings, creating it with the correct mode if tracking is enabled, or removing it if not.
◆ deregisterNotifications [1/2]
| - (void) deregisterNotifications |
|
|
|
◆ deregisterNotifications [2/2]
| - (void) deregisterNotifications |
|
|
|
◆ detachFromEngine
| - (void) detachFromEngine |
|
|
|
Reset the engine and id of this controller.
This method is called by FlutterEngine.
◆ dispatchGestureEvent:
| - (void) dispatchGestureEvent: |
|
(nonnull NSEvent *) |
event |
|
Calls dispatchMouseEvent:phase: with a phase determined by event.phase.
◆ dispatchMouseEvent:
| - (void) dispatchMouseEvent: |
|
(nonnull NSEvent *) |
event |
|
Calls dispatchMouseEvent:phase: with a phase determined by self.mouseState.
mouseState.buttons should be updated before calling this method.
◆ dispatchMouseEvent:phase:
◆ dispose
Removes this controller from the engine. The controller is removed from the engine on dealloc, however in multi-window scenario the controller needs to be unregistered from the engine eagerly - because the FlutterView needs to be removed from the Flutter isolate before destroying the controller and window.
◆ handleKeyboardAnimationCallbackWithTargetTime:
| - (void) handleKeyboardAnimationCallbackWithTargetTime: |
|
(fml::TimePoint) |
targetTime |
|
Handles updating viewport metrics on keyboard animation.
◆ handlePressEvent:nextAction:
| - (void) handlePressEvent: |
|
(FlutterUIPressProxy *) |
press |
| nextAction: |
|
(ios(13.4)) |
API_AVAILABLE |
|
|
| |
◆ isDispatchingKeyEvent:
| - (BOOL) isDispatchingKeyEvent: |
|
(nonnull NSEvent *) |
event |
|
Returns YES if provided event is being currently redispatched by keyboard manager.
◆ launchEngine
Starts running |engine|, including any initial setup.
◆ notifySemanticsEnabledChanged
| - (void) notifySemanticsEnabledChanged |
|
|
|
Called by the associated FlutterEngine when FlutterEngine::semanticsEnabled has changed.
◆ onFirstFrameRendered
| - (void) onFirstFrameRendered |
|
|
|
Called when the first frame has been rendered. Invokes any registered first-frame callback.
◆ restorationPlugin
◆ setUpWithEngine:viewIdentifier:
Set up the controller with engine and id, and other engine-level classes.
This method is called by FlutterEngine. A view controller must be set up before being used, and must be set up only once until detachFromEngine:.
◆ stateIsActive
◆ stateIsBackground
| - (BOOL) stateIsBackground |
|
|
|
◆ supportsShowingSystemContextMenu
| - (BOOL) supportsShowingSystemContextMenu |
|
|
|
◆ textInputPlugin
◆ updateSemantics:
Notify from the framework that the semantics for this view needs to be updated.
◆ accessibilityBridge
◆ accessibilityIsOnOffSwitchLabelsEnabled
| - (BOOL) accessibilityIsOnOffSwitchLabelsEnabled |
|
readnonatomicassign |
◆ applicationLocale
| - (NSString *) applicationLocale |
|
readwritenonatomicassign |
◆ awokenFromNib
◆ displayingFlutterUI
| - (BOOL) displayingFlutterUI |
|
readwritenonatomicassign |
◆ engineNeedsLaunch
| - (BOOL) engineNeedsLaunch |
|
readwritenonatomicassign |
◆ flutterPrefersStatusBarHidden
| - (BOOL) flutterPrefersStatusBarHidden |
|
readwritenonatomicassign |
◆ flutterView
◆ flutterViewRenderedCallback
| - (void(^ flutterViewRenderedCallback) (void)) |
|
readwritenonatomicstrong |
◆ initialized
◆ isHomeIndicatorHidden
| - (BOOL) isHomeIndicatorHidden |
|
readwritenonatomicassign |
◆ isKeyboardInOrTransitioningFromBackground
| - (BOOL) isKeyboardInOrTransitioningFromBackground |
|
readwritenonatomicassign |
◆ isPresentingViewController
| - (BOOL) isPresentingViewController |
|
readnonatomicassign |
◆ isPresentingViewControllerAnimating
| - (BOOL) isPresentingViewControllerAnimating |
|
readwritenonatomicassign |
◆ isVoiceOverRunning
| - (BOOL) isVoiceOverRunning |
|
readnonatomicassign |
◆ keyboardAnimationIsShowing
| - (BOOL) keyboardAnimationIsShowing |
|
readwritenonatomicassign |
◆ keyboardAnimationStartTime
◆ keyboardAnimationView
| - (UIView*) keyboardAnimationView |
|
readwritenonatomicstrong |
◆ keyboardAnimationVSyncClient
◆ keyboardManager
◆ keyboardSpringAnimation
◆ keyUpMonitor
◆ mouseState
◆ ongoingTouches
| - (NSMutableSet<NSNumber*>*) ongoingTouches |
|
readwritenonatomicstrong |
◆ orientationPreferences
| - (UIInterfaceOrientationMask) orientationPreferences |
|
readwritenonatomicassign |
◆ originalViewInsetBottom
| - (CGFloat) originalViewInsetBottom |
|
readwritenonatomicassign |
◆ platformViewsController
◆ prefersStatusBarHidden
| - (BOOL) prefersStatusBarHidden |
|
readwritenonatomicassign |
Whether the status bar is preferred hidden.
This overrides the |UIViewController:prefersStatusBarHidden|.
This is ignored when `UIViewControllerBasedStatusBarAppearance` in info.plist
of the app project is `false`.
Definition at line 60 of file FlutterViewController_Internal.h.
◆ scrollInertiaEventAppKitDeadline
| - (NSTimeInterval) scrollInertiaEventAppKitDeadline |
|
readwritenonatomicassign |
When an iOS app is running in emulation on an Apple Silicon Mac, trackpad input goes through a translation layer, and events are not received with precise deltas. Due to this, we can't rely on checking for a stationary trackpad event. Fortunately, AppKit will send an event of type UIEventTypeScroll following a scroll when inertia should stop. This field is needed to estimate if such an event represents the natural end of scrolling inertia or a user-initiated cancellation.
Definition at line 124 of file FlutterViewController.mm.
◆ scrollInertiaEventStartline
| - (NSTimeInterval) scrollInertiaEventStartline |
|
readwritenonatomicassign |
◆ scrollView
| - (UIScrollView*) scrollView |
|
readwritenonatomicstrong |
◆ shouldIgnoreViewportMetricsUpdatesDuringRotation
| - (BOOL) shouldIgnoreViewportMetricsUpdatesDuringRotation |
|
readwritenonatomicassign |
◆ statusBarStyle
| - (UIStatusBarStyle) statusBarStyle |
|
readwritenonatomicassign |
◆ targetViewInsetBottom
| - (CGFloat) targetViewInsetBottom |
|
readwritenonatomicassign |
◆ touchRateCorrectionVSyncClient
VSyncClient for touch events delivery frame rate correction.
On promotion devices(eg: iPhone13 Pro), the delivery frame rate of touch events is 60HZ but the frame rate of rendering is 120HZ, which is different and will leads jitter and laggy. With this VSyncClient, it can correct the delivery frame rate of touch events to let it keep the same with frame rate of rendering.
Definition at line 132 of file FlutterViewController.mm.
◆ trackingArea
| - (NSTrackingArea*) trackingArea |
|
readwritenonatomicassign |
◆ viewIdentifier
| - (int64_t) viewIdentifier |
|
readnonatomicassign |
The documentation for this category was generated from the following files: