#include <FlutterViewController_Internal.h>
Instance Methods | |
| (UIHoverGestureRecognizer *hoverGestureRecognizer) | - API_AVAILABLE |
| (UIPanGestureRecognizer *discreteScrollingPanGestureRecognizer) | - API_AVAILABLE |
| (UIPanGestureRecognizer *continuousScrollingPanGestureRecognizer) | - API_AVAILABLE |
| (UIPinchGestureRecognizer *pinchGestureRecognizer) | - API_AVAILABLE |
| (UIRotationGestureRecognizer *rotationGestureRecognizer) | - API_AVAILABLE |
| (void) | - addInternalPlugins |
| Creates and registers plugins used by this view controller. | |
| (void) | - deregisterNotifications |
| (void) | - onFirstFrameRendered |
| Called when the first frame has been rendered. Invokes any registered first-frame callback. | |
| (FlutterRestorationPlugin *) | - restorationPlugin |
| (FlutterTextInputPlugin *) | - textInputPlugin |
| (void) | - handlePressEvent:nextAction: |
| (void) | - addInternalPlugins |
| (void) | - deregisterNotifications |
| (BOOL) | - supportsShowingSystemContextMenu |
| (BOOL) | - stateIsActive |
| (BOOL) | - stateIsBackground |
| (BOOL) | - launchEngine |
| (void) | - configureTrackingArea |
| (void) | - dispatchMouseEvent: |
| (void) | - dispatchGestureEvent: |
| (void) | - dispatchMouseEvent:phase: |
| (BOOL) | - isDispatchingKeyEvent: |
| (void) | - setUpWithEngine:viewIdentifier: |
| (void) | - detachFromEngine |
| (void) | - notifySemanticsEnabledChanged |
| (void) | - updateSemantics: |
| (void) | - updateWideGamutForScreen |
| (void) | - dispose |
Instance Methods inherited from <FlutterBinaryMessenger> | |
| (NSObject< FlutterTaskQueue > *) | - makeBackgroundTaskQueue |
| TODO(gaaclarke): Remove optional when macos supports Background Platform Channels. | |
| (FlutterBinaryMessengerConnection) | - setMessageHandlerOnChannel:binaryMessageHandler:taskQueue: |
| (void) | - sendOnChannel:message: |
| (void) | - sendOnChannel:message:binaryReply: |
| (FlutterBinaryMessengerConnection) | - setMessageHandlerOnChannel:binaryMessageHandler: |
| (void) | - cleanUpConnection: |
Instance Methods inherited from <FlutterKeyboardInsetManagerDelegate> | |
| (void) | - updateViewportMetricsWithInset: |
| Updates the viewport metrics with the new bottom inset. | |
| (CGFloat) | - physicalViewInsetBottom |
| Returns the current physical bottom view inset. | |
| (UIView *) | - view |
| Returns the view associated with the delegate. | |
| (FlutterEngine *) | - engine |
| Returns the engine associated with the delegate. | |
| (UIScreen *) | - flutterScreenIfViewLoaded |
| Returns the UIScreen associated with the Flutter view, if the view is loaded. | |
| (BOOL) | - isPadInSlideOverOrStageManagerMode |
| Returns whether the device is an iPad and in Slide Over or Stage Manager mode. | |
| (CGRect) | - convertViewRectToScreen: |
| Converts a rectangle from the view's coordinate system to the screen's coordinate system. | |
| (BOOL) | - isViewLoaded |
| Returns whether the delegate's view is currently loaded. | |
Instance Methods inherited from <FlutterViewResponder> | |
| (void) | - touchesBegan:withEvent: |
| (void) | - touchesMoved:withEvent: |
| (void) | - touchesEnded:withEvent: |
| (void) | - touchesCancelled:withEvent: |
| (void) | - touchesEstimatedPropertiesUpdated: |
| (void) | - forceTouchesCancelled: |
| (BOOL) | - platformViewShouldAcceptTouchAtTouchBeganLocation: |
Instance Methods inherited from <FlutterKeyboardManagerEventContext> | |
| (BOOL) | - onTextInputKeyEvent: |
Private interface declaration for FlutterViewController.
Definition at line 69 of file FlutterViewController.mm.
| - (void) addInternalPlugins |
Creates and registers plugins used by this view controller.
| - (void) addInternalPlugins |
| - (UIHoverGestureRecognizer *hoverGestureRecognizer) API_AVAILABLE | (ios(13.4)) |
| - (UIPanGestureRecognizer *discreteScrollingPanGestureRecognizer) API_AVAILABLE | (ios(13.4)) |
| - (UIPanGestureRecognizer *continuousScrollingPanGestureRecognizer) API_AVAILABLE | (ios(13.4)) |
| - (UIPinchGestureRecognizer *pinchGestureRecognizer) API_AVAILABLE | (ios(13.4)) |
| - (UIRotationGestureRecognizer *rotationGestureRecognizer) API_AVAILABLE | (ios(13.4)) |
| - (void) configureTrackingArea |
Updates |trackingArea| for the current tracking settings, creating it with the correct mode if tracking is enabled, or removing it if not.
| - (void) deregisterNotifications |
| - (void) deregisterNotifications |
| - (void) detachFromEngine |
Reset the engine and id of this controller.
This method is called by FlutterEngine.
| - (void) dispatchGestureEvent: | (nonnull NSEvent *) | event |
Calls dispatchMouseEvent:phase: with a phase determined by event.phase.
| - (void) dispatchMouseEvent: | (nonnull NSEvent *) | event |
Calls dispatchMouseEvent:phase: with a phase determined by self.mouseState.
mouseState.buttons should be updated before calling this method.
| - (void) dispatchMouseEvent: | (nonnull NSEvent *) | event | |
| phase: | (FlutterPointerPhase) | phase | |
Converts |event| to a FlutterPointerEvent with the given phase, and sends it to the engine.
| - (void) 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.
| - (void) handlePressEvent: | (FlutterUIPressProxy *) | press | |
| nextAction: | (ios(13.4)) | API_AVAILABLE | |
| - (BOOL) isDispatchingKeyEvent: | (nonnull NSEvent *) | event |
Returns YES if provided event is being currently redispatched by keyboard manager.
| - (BOOL) launchEngine |
Starts running |engine|, including any initial setup.
| - (void) notifySemanticsEnabledChanged |
Called by the associated FlutterEngine when FlutterEngine::semanticsEnabled has changed.
| - (void) onFirstFrameRendered |
Called when the first frame has been rendered. Invokes any registered first-frame callback.
| - (FlutterRestorationPlugin *) restorationPlugin |
| - (void) setUpWithEngine: | (nonnull FlutterEngine *) | engine | |
| viewIdentifier: | (FlutterViewIdentifier) | 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:.
| - (BOOL) stateIsActive |
| - (BOOL) stateIsBackground |
| - (BOOL) supportsShowingSystemContextMenu |
| - (FlutterTextInputPlugin *) textInputPlugin |
| - (void) updateSemantics: | (nonnull const FlutterSemanticsUpdate2 *) | update |
Notify from the framework that the semantics for this view needs to be updated.
| - (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.
|
readnonatomicassign |
Definition at line 21 of file FlutterViewController_Internal.h.
|
readwritenonatomicstrong |
Definition at line 64 of file FlutterViewController_Internal.h.
|
readwritenonatomicassign |
Definition at line 51 of file FlutterViewController_Internal.h.
|
readwritenonatomicassign |
Definition at line 88 of file FlutterViewController.mm.
|
readwritenonatomicassign |
Definition at line 90 of file FlutterViewController.mm.
|
readwritenonatomicassign |
Definition at line 87 of file FlutterViewController.mm.
|
readwritenonatomicassign |
Definition at line 95 of file FlutterViewController.mm.
|
readwritenonatomicassign |
Definition at line 79 of file FlutterViewController.mm.
|
readwritenonatomicstrong |
|
readwritenonatomicassign |
Definition at line 86 of file FlutterViewController.mm.
|
readwritenonatomicassign |
Definition at line 91 of file FlutterViewController.mm.
|
readnonatomicassign |
Definition at line 47 of file FlutterViewController_Internal.h.
|
readwritenonatomicassign |
Definition at line 92 of file FlutterViewController.mm.
|
readnonatomicassign |
Definition at line 48 of file FlutterViewController_Internal.h.
|
readwritenonatomicstrong |
Definition at line 50 of file FlutterViewController_Internal.h.
|
readwritenonatomicstrong |
Definition at line 49 of file FlutterViewController_Internal.h.
|
readwritenonatomicassign |
Event monitor for keyUp events.
Definition at line 178 of file FlutterViewController.mm.
|
readwritenonatomicassign |
The current state of the mouse and the sent mouse events.
Definition at line 173 of file FlutterViewController.mm.
|
readwritenonatomicstrong |
Definition at line 97 of file FlutterViewController.mm.
|
readwritenonatomicassign |
Definition at line 84 of file FlutterViewController.mm.
|
readnonatomicassign |
Definition at line 62 of file FlutterViewController_Internal.h.
|
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.
|
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 121 of file FlutterViewController.mm.
|
readwritenonatomicassign |
Timestamp after which a scroll inertia cancel event should be inferred.
Keyboard animation properties
Definition at line 113 of file FlutterViewController.mm.
|
readwritenonatomicstrong |
Definition at line 102 of file FlutterViewController.mm.
|
readwritenonatomicassign |
Whether we should ignore viewport metrics updates during rotation transition.
Definition at line 107 of file FlutterViewController.mm.
|
readwritenonatomicassign |
The size of the FlutterView's frame, as determined by auto-layout, before Flutter's custom auto-resizing constraints are applied.
Definition at line 133 of file FlutterViewController.mm.
|
readwritenonatomicstrong |
Definition at line 82 of file FlutterViewController.mm.
|
readwritenonatomicassign |
Definition at line 85 of file FlutterViewController.mm.
|
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 129 of file FlutterViewController.mm.
|
readwritenonatomicassign |
The tracking area used to generate hover events, if enabled.
Definition at line 168 of file FlutterViewController.mm.
|
readnonatomicassign |
Definition at line 75 of file FlutterViewController.mm.