#include <FlutterViewController_Internal.h>
Private interface declaration for FlutterViewController.
Definition at line 67 of file FlutterViewController.mm.
◆ 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.
◆ 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:.
◆ shouldHandleSceneNotification:
| - (BOOL) shouldHandleSceneNotification: |
|
(ios(13.0)) |
API_AVAILABLE |
|
Determines whether a UIScene notification should be handled by this view controller.
In multi-scene environments (such as iPadOS split view, macOS Catalyst multi-window, or App Extensions), multiple UIWindowScene instances can exist in the same process space. Because the scene observers register to listen for all targets, they may receive lifecycle notifications from unrelated auxiliary or secondary scenes.
- Parameters
-
| notification | The UIScene notification containing the transitioning UIScene in its object. |
- Returns
- YES if the notification matches this view controller's scene context. NO if it originates from an unrelated scene and should be ignored.
◆ stateIsActive
◆ stateIsBackground
| - (BOOL) stateIsBackground |
|
|
|
◆ supportsShowingSystemContextMenu
| - (BOOL) supportsShowingSystemContextMenu |
|
|
|
◆ textInputPlugin
◆ updateSemantics:
Notify from the framework that the semantics for this view needs to be updated.
◆ updateWideGamutForScreen
| - (void) updateWideGamutForScreen |
|
|
|
Updates the wide gamut surface format based on the current screen's display gamut. Should be called when the window moves to a different screen.
◆ accessibilityBridge
◆ accessibilityFeatures
| - (FlutterAccessibilityFeatures*) accessibilityFeatures |
|
readwritenonatomicstrong |
◆ applicationLocale
| - (NSString *) applicationLocale |
|
readwritenonatomicassign |
◆ awokenFromNib
◆ displayingFlutterUI
| - (BOOL) displayingFlutterUI |
|
readwritenonatomicassign |
◆ displayLinkManager
| - (FlutterDisplayLinkManager*) displayLinkManager |
|
readwritenonatomicstrong |
◆ engineNeedsLaunch
| - (BOOL) engineNeedsLaunch |
|
readwritenonatomicassign |
◆ flutterPrefersStatusBarHidden
| - (BOOL) flutterPrefersStatusBarHidden |
|
readwritenonatomicassign |
◆ flutterView
◆ flutterViewRenderedCallback
| - (void(^ flutterViewRenderedCallback) (void)) |
|
readwritenonatomicstrong |
◆ initialized
◆ isHomeIndicatorHidden
| - (BOOL) isHomeIndicatorHidden |
|
readwritenonatomicassign |
◆ isPresentingViewController
| - (BOOL) isPresentingViewController |
|
readnonatomicassign |
◆ isPresentingViewControllerAnimating
| - (BOOL) isPresentingViewControllerAnimating |
|
readwritenonatomicassign |
◆ isVoiceOverRunning
| - (BOOL) isVoiceOverRunning |
|
readnonatomicassign |
◆ keyboardInsetManager
| - (id<FlutterKeyboardInsetManagerProtocol>) keyboardInsetManager |
|
readwritenonatomicstrong |
◆ keyboardManager
◆ keyUpMonitor
◆ mouseState
◆ ongoingTouches
| - (NSMutableSet<NSNumber*>*) ongoingTouches |
|
readwritenonatomicstrong |
◆ orientationPreferences
| - (UIInterfaceOrientationMask) orientationPreferences |
|
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 49 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 119 of file FlutterViewController.mm.
◆ scrollInertiaEventStartline
| - (NSTimeInterval) scrollInertiaEventStartline |
|
readwritenonatomicassign |
Timestamp after which a scroll inertia cancel event should be inferred.
Keyboard animation properties
Definition at line 111 of file FlutterViewController.mm.
◆ scrollView
| - (UIScrollView*) scrollView |
|
readwritenonatomicstrong |
◆ shouldIgnoreViewportMetricsUpdatesDuringRotation
| - (BOOL) shouldIgnoreViewportMetricsUpdatesDuringRotation |
|
readwritenonatomicassign |
◆ sizeBeforeAutoResized
| - (CGSize) sizeBeforeAutoResized |
|
readwritenonatomicassign |
◆ splashScreenManager
| - (FlutterSplashScreenManager*) splashScreenManager |
|
readwritenonatomicstrong |
◆ statusBarStyle
| - (UIStatusBarStyle) statusBarStyle |
|
readwritenonatomicassign |
◆ touchRateCorrectionVSyncClient
| - (FlutterVSyncClient*) touchRateCorrectionVSyncClient |
|
readwritenonatomicstrong |
FlutterVSyncClient 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 FlutterVSyncClient, it can correct the delivery frame rate of touch events to let it keep the same with frame rate of rendering.
Definition at line 127 of file FlutterViewController.mm.
◆ trackingArea
| - (NSTrackingArea*) trackingArea |
|
readwritenonatomicassign |
◆ viewIdentifier
| - (int64_t) viewIdentifier |
|
readnonatomicassign |
The documentation for this category was generated from the following files: