#import <FlutterEngine_Internal.h>
Properties | |
NSMutableArray< NSNumber * > * | isResponseValid |
NSPointerArray * | pluginAppDelegates |
NSMutableDictionary< NSString *, FlutterEngineRegistrar * > * | pluginRegistrars |
BOOL | running |
FlutterRenderer * | renderer |
FlutterEngineProcTable & | embedderAPI |
BOOL | semanticsEnabled |
NSString * | executableName |
FlutterPasteboard * | pasteboard |
std::vector< std::string > | switches |
FlutterEngineTerminationHandler * | terminationHandler |
Private interface declaration for FlutterEngine.
Definition at line 92 of file FlutterEngine.mm.
- (void) addViewController: | (FlutterViewController *) | viewController |
Attach a view controller to the engine as its default controller.
Since FlutterEngine can only handle the implicit view for now, the given controller will always be assigned to the implicit view, if there isn't an implicit view yet. If the engine already has an implicit view, this call throws an assertion.
The engine holds a weak reference to the attached view controller.
If the given view controller is already attached to an engine, this call throws an assertion.
- (void) announceAccessibilityMessage: | (NSString *) | message | |
withPriority: | (NSAccessibilityPriorityLevel) | priority | |
Announces accessibility messages.
- (void) deregisterViewControllerForIdentifier: | (FlutterViewIdentifier) | viewIdentifier |
An internal method that removes the view controller with the given ID.
This method clears the ID of the controller, removes the controller from the map. This is an no-op if the view ID is not associated with any view controllers.
- (void) dispatchSemanticsAction: | (FlutterSemanticsAction) | action | |
toTarget: | (uint16_t) | target | |
withData: | (fml::MallocMapping) | data | |
Dispatches semantics action back to the framework. The semantics must be enabled by calling the updateSemanticsEnabled before dispatching semantics actions.
- (void) engineCallbackOnPlatformMessage: | (const FlutterPlatformMessage *) | message |
Handles a platform message from the engine.
- (void) engineCallbackOnPreEngineRestart |
Invoked right before the engine is restarted.
This should reset states to as if the application has just started. It usually indicates a hot restart (Shift-R in Flutter CLI.)
- (void) handleAccessibilityEvent: | (NSDictionary< NSString *, id > *) | annotatedEvent |
Handles accessibility events.
- (void) handleMethodCall: | (FlutterMethodCall *) | call | |
result: | (FlutterResult) | result | |
Handles messages received from the Flutter engine on the _*Channel channels.
- (void) loadAOTData: | (NSString *) | assetsDir |
Loads the AOT snapshots and instructions from the elf bundle (app_elf_snapshot.so) into _aotData, if it is present in the assets directory.
- (BOOL) markTextureFrameAvailable: | (int64_t) | textureID |
Marks texture with the given id as available. Returns YES on success.
- (nonnull FlutterPlatformViewController*) platformViewController |
- (void) postMainThreadTask: | (FlutterTask) | task | |
targetTimeInNanoseconds: | (uint64_t) | targetTime | |
Requests that the task be posted back the to the Flutter engine at the target time. The target time is in the clock used by the Flutter engine.
- (BOOL) registerTextureWithID: | (int64_t) | textureId |
Registers an external texture with the given id. Returns YES on success.
- (void) registerViewController: | (FlutterViewController *) | controller | |
forIdentifier: | (FlutterViewIdentifier) | viewIdentifier | |
An internal method that adds the view controller with the given ID.
This method assigns the controller with the ID, puts the controller into the map, and does assertions related to the implicit view ID.
- (void) removeViewController: | (FlutterViewController *) | viewController |
Dissociate the given view controller from this engine.
If the view controller is not associated with this engine, this call throws an assertion.
- (NSArray<NSScreen*>*) screens |
Returns an array of screen objects representing all of the screens available on the system.
- (void) sendKeyEvent: | (const FlutterKeyEvent &) | event | |
callback: | (nullable FlutterKeyEventCallback) | callback | |
userData: | (nullable void *) | userData | |
Dispatches the given pointer event data to engine.
- (void) sendPointerEvent: | (const FlutterPointerEvent &) | event |
Dispatches the given pointer event data to engine.
- (void) sendUserLocales |
Sends the list of user-preferred locales to the Flutter engine.
- (void) setApplicationState: | (flutter::AppLifecycleState) | state |
Handles changes to the application state, sending them to the framework.
state | One of the lifecycle constants in app_lifecycle_state.h, corresponding to the Dart enum AppLifecycleState. |
- (void) setUpAccessibilityChannel |
Creates an accessibility channel and sets up the message handler.
- (void) setUpPlatformViewChannel |
Creates a platform view channel and sets up the method handler.
- (void) shutDownIfNeeded |
Shuts down the engine if view requirement is not met, and headless execution is not allowed.
- (BOOL) unregisterTextureWithID: | (int64_t) | textureID |
Unregisters an external texture with the given id. Returns YES on success.
- (void) updateWindowMetricsForViewController: | (FlutterViewController *) | viewController |
Informs the engine that the specified view controller's window metrics have changed.
- (nullable FlutterViewController*) viewControllerForIdentifier: | (FlutterViewIdentifier) | viewIdentifier |
- (nullable FlutterViewController*) viewControllerForIdentifier: | (FlutterViewIdentifier) | viewIdentifier |
The |FlutterViewController| associated with the given view ID, if any.
- (void) viewControllerViewDidLoad: | (FlutterViewController *) | viewController |
Notify the engine that a view for the given view controller has been loaded.
|
readwritenonatomicassign |
Function pointers for interacting with the embedder.h API.
Definition at line 96 of file FlutterEngine_Internal.h.
|
readnonatomicassign |
The executable name for the current process.
Definition at line 107 of file FlutterEngine_Internal.h.
|
readwritenonatomicstrong |
A mutable array that holds one bool value that determines if responses to platform messages are clear to execute. This value should be read or written only inside of a synchronized block and will return NO
after the FlutterEngine has been dealloc'd.
Definition at line 99 of file FlutterEngine.mm.
|
readwritenonatomicassign |
This just returns the NSPasteboard so that it can be mocked in the tests.
Definition at line 112 of file FlutterEngine_Internal.h.
|
readwritenonatomicstrong |
All delegates added via plugin calls to addApplicationDelegate.
Definition at line 104 of file FlutterEngine.mm.
|
readnonatomicassign |
All registrars returned from registrarForPlugin:
Definition at line 110 of file FlutterEngine.mm.
|
readnonatomicassign |
Provides the renderer config needed to initialize the engine and also handles external texture management.
Definition at line 91 of file FlutterEngine_Internal.h.
|
readnonatomicassign |
True if the engine is currently running.
Definition at line 85 of file FlutterEngine_Internal.h.
|
readwritenonatomicassign |
True if the semantics is enabled. The Flutter framework starts sending semantics update through the embedder as soon as it is set to YES.
Definition at line 102 of file FlutterEngine_Internal.h.
|
readnonatomicassign |
The command line arguments array for the engine.
Definition at line 117 of file FlutterEngine_Internal.h.
|
readnonatomicassign |
Provides the |FlutterEngineTerminationHandler| to be used for this engine.
Definition at line 122 of file FlutterEngine_Internal.h.