#import <FlutterViewController_Internal.h>
Instance Methods | |
(BOOL) | - launchEngine |
(void) | - configureTrackingArea |
(void) | - initializeKeyboard |
(void) | - dispatchMouseEvent: |
(void) | - dispatchGestureEvent: |
(void) | - dispatchMouseEvent:phase: |
(void) | - onKeyboardLayoutChanged |
(BOOL) | - isDispatchingKeyEvent: |
(void) | - setUpWithEngine:viewIdentifier:threadSynchronizer: |
(void) | - detachFromEngine |
(void) | - notifySemanticsEnabledChanged |
(void) | - updateSemantics: |
Properties | |
NSTrackingArea * | trackingArea |
MouseState | mouseState |
id | keyUpMonitor |
FlutterKeyboardManager * | keyboardManager |
KeyboardLayoutNotifier | keyboardLayoutNotifier |
NSData * | keyboardLayoutData |
FlutterView * | flutterView |
FlutterTextInputPlugin * | textInputPlugin |
std::weak_ptr< flutter::AccessibilityBridgeMac > | accessibilityBridge |
Private interface declaration for FlutterViewController.
Definition at line 163 of file FlutterViewController.mm.
- (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) 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) initializeKeyboard |
Creates and registers keyboard related components.
- (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) onKeyboardLayoutChanged |
Called when the active keyboard input source changes.
Input sources may be simple keyboard layouts, or more complex input methods involving an IME, such as Chinese, Japanese, and Korean.
- (void) setUpWithEngine: | (nonnull FlutterEngine *) | engine | |
viewIdentifier: | (FlutterViewIdentifier) | viewIdentifier | |
threadSynchronizer: | (nonnull FlutterThreadSynchronizer *) | threadSynchronizer | |
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:.
- (void) updateSemantics: | (nonnull const FlutterSemanticsUpdate2 *) | update |
Notify from the framework that the semantics for this view needs to be updated.
|
readnonatomicassign |
Definition at line 27 of file FlutterViewController_Internal.h.
|
readnonatomicassign |
Definition at line 20 of file FlutterViewController_Internal.h.
|
readwritenonatomicassign |
Definition at line 189 of file FlutterViewController.mm.
|
readwritenonatomicassign |
Definition at line 187 of file FlutterViewController.mm.
|
readnonatomicassign |
Pointer to a keyboard manager, a hub that manages how key events are dispatched to various Flutter key responders, and whether the event is propagated to the next NSResponder.
Definition at line 185 of file FlutterViewController.mm.
|
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.
|
readnonatomicassign |
The text input plugin that handles text editing state for text fields.
Definition at line 25 of file FlutterViewController_Internal.h.
|
readwritenonatomicassign |
The tracking area used to generate hover events, if enabled.
Definition at line 168 of file FlutterViewController.mm.