Flutter Engine
The Flutter Engine
Instance Methods | Properties | List of all members
FlutterEngineSpy Class Reference
Inheritance diagram for FlutterEngineSpy:
FlutterEngine <FlutterMouseCursorPluginDelegate> <FlutterViewEngineDelegate> <FlutterTextureRegistry> <FlutterBinaryMessenger> <FlutterTextInputDelegate> <FlutterUndoManagerDelegate> <FlutterIndirectScribbleDelegate> <FlutterPluginRegistry>

Instance Methods

(void) - ensureSemanticsEnabled [implementation]
 
- Instance Methods inherited from FlutterEngine
(instancetype) - init
 
(instancetype) - initWithName:
 
(instancetype) - initWithName:project:
 
(instancetype) - initWithName:project:allowHeadlessExecution:
 
(instancetype) - initWithName:project:allowHeadlessExecution:restorationEnabled:
 
(BOOL- run
 
(BOOL- runWithEntrypoint:
 
(BOOL- runWithEntrypoint:initialRoute:
 
(BOOL- runWithEntrypoint:libraryURI:
 
(BOOL- runWithEntrypoint:libraryURI:initialRoute:
 
(BOOL- runWithEntrypoint:libraryURI:initialRoute:entrypointArgs:
 
(void) - destroyContext
 
(void) - ensureSemanticsEnabled
 
(NSURL *observatoryUrl- FLUTTER_DEPRECATED
 
(nonnull instancetype) - initWithName:project:
 
(nonnull instancetype) - initWithName:project:allowHeadlessExecution:
 
(nonnull instancetype) - NS_UNAVAILABLE
 
(BOOL- runWithEntrypoint:
 
(void) - shutDownEngine
 
(instancetype) - initWithName:project: [implementation]
 
(instancetype) - initWithName:project:allowHeadlessExecution: [implementation]
 
(instancetype) - initWithName:project:allowHeadlessExecution:restorationEnabled: [implementation]
 
(void) - setUpSceneLifecycleNotifications: [implementation]
 
(void) - setUpApplicationLifecycleNotifications: [implementation]
 
(void) - recreatePlatformViewController [implementation]
 
(flutter::IOSRenderingAPI- platformViewsRenderingAPI [implementation]
 
(void) - dealloc [implementation]
 
(flutter::Shell &) - shell [implementation]
 
(fml::WeakNSObject< FlutterEngine >) - getWeakNSObject [implementation]
 
(void) - updateViewportMetrics: [implementation]
 
(void) - dispatchPointerDataPacket: [implementation]
 
(fml::WeakPtr< flutter::PlatformView >) - platformView [implementation]
 
(flutter::PlatformViewIOS *) - iosPlatformView [implementation]
 
(fml::RefPtr< fml::TaskRunner >) - platformTaskRunner [implementation]
 
(fml::RefPtr< fml::TaskRunner >) - uiTaskRunner [implementation]
 
(fml::RefPtr< fml::TaskRunner >) - rasterTaskRunner [implementation]
 
(void) - sendKeyEvent:callback:userData: [implementation]
 
(void) - setViewController: [implementation]
 
(void) - attachView [implementation]
 
(void) - setFlutterViewControllerWillDeallocObserver: [implementation]
 
(void) - notifyViewControllerDeallocated [implementation]
 
(FlutterPlatformPlugin *) - platformPlugin [implementation]
 
(std::shared_ptr< flutter::FlutterPlatformViewsController > &) - platformViewsController [implementation]
 
(FlutterTextInputPlugin *) - textInputPlugin [implementation]
 
(FlutterUndoManagerPlugin *) - undoManagerPlugin [implementation]
 
(FlutterRestorationPlugin *) - restorationPlugin [implementation]
 
(FlutterMethodChannel *) - undoManagerChannel [implementation]
 
(FlutterMethodChannel *) - scribbleChannel [implementation]
 
(FlutterMethodChannel *) - spellCheckChannel [implementation]
 
(NSURL *) - observatoryUrl [implementation]
 
(void) - resetChannels [implementation]
 
(void) - startProfiler [implementation]
 
(void) - setUpChannels [implementation]
 
(void) - maybeSetupPlatformViewChannels [implementation]
 
(flutter::Rasterizer::Screenshot- screenshot:base64Encode: [implementation]
 
(void) - launchEngine:libraryURI:entrypointArgs: [implementation]
 
(void) - setUpShell:withVMServicePublication: [implementation]
 
(BOOL- createShell:libraryURI:initialRoute: [implementation]
 
(void) - updateDisplays [implementation]
 
(BOOL- runWithEntrypoint:libraryURI: [implementation]
 
(BOOL- runWithEntrypoint: [implementation]
 
(BOOL- runWithEntrypoint:initialRoute: [implementation]
 
(BOOL- runWithEntrypoint:libraryURI:initialRoute: [implementation]
 
(BOOL- runWithEntrypoint:libraryURI:initialRoute:entrypointArgs: [implementation]
 
(void) - notifyLowMemory [implementation]
 
(void) - flutterTextInputView:updateEditingClient:withState: [implementation]
 
(void) - flutterTextInputView:updateEditingClient:withState:withTag: [implementation]
 
(void) - flutterTextInputView:updateEditingClient:withDelta: [implementation]
 
(void) - flutterTextInputView:updateFloatingCursor:withClient:withPosition: [implementation]
 
(void) - flutterTextInputView:performAction:withClient: [implementation]
 
(void) - flutterTextInputView:showAutocorrectionPromptRectForStart:end:withClient: [implementation]
 
(void) - flutterTextInputView:willDismissEditMenuWithTextInputClient: [implementation]
 
(void) - flutterTextInputView:showToolbar: [implementation]
 
(void) - flutterTextInputPlugin:focusElement:atPoint:result: [implementation]
 
(void) - flutterTextInputPlugin:requestElementsInRect:result: [implementation]
 
(void) - flutterTextInputViewScribbleInteractionBegan: [implementation]
 
(void) - flutterTextInputViewScribbleInteractionFinished: [implementation]
 
(void) - flutterTextInputView:insertTextPlaceholderWithSize:withClient: [implementation]
 
(void) - flutterTextInputView:removeTextPlaceholder: [implementation]
 
(void) - flutterTextInputView:didResignFirstResponderWithTextInputClient: [implementation]
 
(void) - handleUndoWithDirection: [implementation]
 
(UIView< UITextInput > *) - activeTextInputView [implementation]
 
(NSUndoManager *) - undoManager [implementation]
 
(flutter::Rasterizer::Screenshot- takeScreenshot:asBase64Encoded: [implementation]
 
(void) - flutterViewAccessibilityDidCall [implementation]
 
(void) - setBinaryMessenger: [implementation]
 
(void) - sendOnChannel:message: [implementation]
 
(void) - sendOnChannel:message:binaryReply: [implementation]
 
(NSObject< FlutterTaskQueue > *) - makeBackgroundTaskQueue [implementation]
 TODO(gaaclarke): Remove optional when macos supports Background Platform Channels. More...
 
(FlutterBinaryMessengerConnection- setMessageHandlerOnChannel:binaryMessageHandler: [implementation]
 
(FlutterBinaryMessengerConnection- setMessageHandlerOnChannel:binaryMessageHandler:taskQueue: [implementation]
 
(void) - cleanUpConnection: [implementation]
 
(int64_t) - registerTexture: [implementation]
 
(void) - unregisterTexture: [implementation]
 
(void) - textureFrameAvailable: [implementation]
 
(NSString *) - lookupKeyForAsset: [implementation]
 
(NSString *) - lookupKeyForAsset:fromPackage: [implementation]
 
(id< FlutterPluginRegistry >) - pluginRegistry [implementation]
 
(NSObject< FlutterPluginRegistrar > *) - registrarForPlugin: [implementation]
 
(BOOL- hasPlugin: [implementation]
 
(NSObject *) - valuePublishedByPlugin: [implementation]
 
(void) - applicationWillEnterForeground: [implementation]
 
(void) - applicationDidEnterBackground: [implementation]
 
(void) - flutterWillEnterForeground: [implementation]
 
(void) - flutterDidEnterBackground: [implementation]
 
(void) - onMemoryWarning: [implementation]
 
(void) - setIsGpuDisabled: [implementation]
 
(void) - onLocaleUpdated: [implementation]
 
(void) - waitForFirstFrame:callback: [implementation]
 
(FlutterEngine *) - spawnWithEntrypoint:libraryURI:initialRoute:entrypointArgs: [implementation]
 
(const flutter::ThreadHost &) - threadHost [implementation]
 
(FlutterDartProject *) - project [implementation]
 
(BOOL- isUsingImpeller [implementation]
 
(void) - loadAOTData: [implementation]
 
(void) - registerViewController:forIdentifier: [implementation]
 
(void) - viewControllerViewDidLoad: [implementation]
 
(void) - deregisterViewControllerForIdentifier: [implementation]
 
(void) - shutDownIfNeeded [implementation]
 
(FlutterViewController *) - viewControllerForIdentifier: [implementation]
 
(FlutterCompositor *) - createFlutterCompositor [implementation]
 
(void) - addViewController: [implementation]
 
(void) - removeViewController: [implementation]
 
(BOOL- running [implementation]
 
(void) - updateDisplayConfig: [implementation]
 
(NSArray< NSScreen * > *) - screens [implementation]
 
(void) - updateDisplayConfig [implementation]
 
(void) - onSettingsChanged: [implementation]
 
(void) - sendInitialSettings [implementation]
 
(FlutterEngineProcTable &) - embedderAPI [implementation]
 
(nonnull NSString *) - executableName [implementation]
 
(void) - updateWindowMetricsForViewController: [implementation]
 
(void) - sendPointerEvent: [implementation]
 
(void) - sendKeyEvent:callback:userData: [implementation]
 
(void) - setSemanticsEnabled: [implementation]
 
(void) - dispatchSemanticsAction:toTarget:withData: [implementation]
 
(FlutterPlatformViewController *) - platformViewController [implementation]
 
(void) - sendUserLocales [implementation]
 
(void) - engineCallbackOnPlatformMessage: [implementation]
 
(void) - engineCallbackOnPreEngineRestart [implementation]
 
(void) - onVSync: [implementation]
 
(void) - setUpPlatformViewChannel [implementation]
 
(void) - setUpAccessibilityChannel [implementation]
 
(void) - setUpNotificationCenterListeners [implementation]
 
(void) - addInternalPlugins [implementation]
 
(void) - didUpdateMouseCursor: [implementation]
 
(void) - applicationWillTerminate: [implementation]
 
(void) - windowDidChangeScreen: [implementation]
 
(void) - onAccessibilityStatusChanged: [implementation]
 
(void) - handleAccessibilityEvent: [implementation]
 
(void) - announceAccessibilityMessage:withPriority: [implementation]
 
(void) - handleMethodCall:result: [implementation]
 
(void) - playSystemSound: [implementation]
 
(NSDictionary *) - getClipboardData: [implementation]
 
(void) - setClipboardData: [implementation]
 
(BOOL- clipboardHasStrings [implementation]
 
(std::vector< std::string >) - switches [implementation]
 
(FlutterThreadSynchronizer *) - testThreadSynchronizer [implementation]
 
(void) - setApplicationState: [implementation]
 
(void) - handleWillBecomeActive: [implementation]
 
(void) - handleWillResignActive: [implementation]
 
(void) - handleDidChangeOcclusionState: [implementation]
 
(void) - sendOnChannel:message: [implementation]
 
(void) - sendOnChannel:message:binaryReply: [implementation]
 
(FlutterBinaryMessengerConnection- setMessageHandlerOnChannel:binaryMessageHandler: [implementation]
 
(int64_t) - registerTexture: [implementation]
 
(BOOL- registerTextureWithID: [implementation]
 
(BOOL- markTextureFrameAvailable: [implementation]
 
(BOOL- unregisterTextureWithID: [implementation]
 
(void) - runTaskOnEmbedder: [implementation]
 
(void) - postMainThreadTask:targetTimeInNanoseconds: [implementation]
 
(flutter::FlutterCompositor *) - macOSCompositor [implementation]
 
(instancetype) - initWithScenario:withCompletion:
 
(void) - sceneWillEnterForeground:
 
(void) - sceneDidEnterBackground:
 
- Instance Methods inherited from <FlutterPluginRegistry>
(nullable NSObject< FlutterPluginRegistrar > *) - registrarForPlugin:
 
(BOOL- hasPlugin:
 
(nullable NSObject *) - valuePublishedByPlugin:
 
(nonnull id< FlutterPluginRegistrar >) - registrarForPlugin:
 
(nullable NSObject *) - valuePublishedByPlugin:
 
(void) - flutterTextInputPlugin:focusElement:atPoint:result:
 
(void) - flutterTextInputPlugin:requestElementsInRect:result:
 
(void) - handleUndoWithDirection:
 
(void) - flutterTextInputView:updateEditingClient:withState:
 
(void) - flutterTextInputView:updateEditingClient:withState:withTag:
 
(void) - flutterTextInputView:updateEditingClient:withDelta:
 
(void) - flutterTextInputView:performAction:withClient:
 
(void) - flutterTextInputView:updateFloatingCursor:withClient:withPosition:
 
(void) - flutterTextInputView:showAutocorrectionPromptRectForStart:end:withClient:
 
(void) - flutterTextInputView:showToolbar:
 
(void) - flutterTextInputViewScribbleInteractionBegan:
 
(void) - flutterTextInputViewScribbleInteractionFinished:
 
(void) - flutterTextInputView:insertTextPlaceholderWithSize:withClient:
 
(void) - flutterTextInputView:removeTextPlaceholder:
 
(void) - flutterTextInputView:didResignFirstResponderWithTextInputClient:
 
(void) - flutterTextInputView:willDismissEditMenuWithTextInputClient:
 
- Instance Methods inherited from <FlutterBinaryMessenger>
(NSObject< FlutterTaskQueue > *) - makeBackgroundTaskQueue
 TODO(gaaclarke): Remove optional when macos supports Background Platform Channels. More...
 
(FlutterBinaryMessengerConnection- setMessageHandlerOnChannel:binaryMessageHandler:taskQueue:
 
(void) - sendOnChannel:message:
 
(void) - sendOnChannel:message:binaryReply:
 
(FlutterBinaryMessengerConnection- setMessageHandlerOnChannel:binaryMessageHandler:
 
(void) - cleanUpConnection:
 
(int64_t) - registerTexture:
 
(void) - textureFrameAvailable:
 
(void) - unregisterTexture:
 
(flutter::Rasterizer::Screenshot- takeScreenshot:asBase64Encoded:
 
(std::shared_ptr< flutter::FlutterPlatformViewsController > &) - platformViewsController
 
(void) - flutterViewAccessibilityDidCall
 
- Instance Methods inherited from <FlutterMouseCursorPluginDelegate>
(void) - didUpdateMouseCursor:
 

Properties

BOOL ensureSemanticsEnabledCalled
 
- Properties inherited from FlutterEngine
FlutterViewControllerviewController
 
FlutterMethodChannellocalizationChannel
 
FlutterMethodChannelnavigationChannel
 
FlutterMethodChannelrestorationChannel
 
FlutterMethodChannelplatformChannel
 
FlutterMethodChanneltextInputChannel
 
FlutterBasicMessageChannellifecycleChannel
 
FlutterBasicMessageChannelsystemChannel
 
FlutterBasicMessageChannelsettingsChannel
 
FlutterBasicMessageChannelkeyEventChannel
 
NSURL * vmServiceUrl
 
NSObject< FlutterBinaryMessenger > * binaryMessenger
 
NSObject< FlutterTextureRegistry > * textureRegistry
 
NSString * isolateId
 
BOOL isGpuDisabled
 
id< FlutterBinaryMessengerbinaryMessenger
 
NSMutableDictionary * pluginPublications [implementation]
 
NSMutableDictionary< NSString *, FlutterEngineRegistrar * > * registrars [implementation]
 
NSString * initialRoute [implementation]
 
id< NSObject > flutterViewControllerWillDeallocObserver [implementation]
 
BOOL enableEmbedderAPI [implementation]
 
NSMutableArray< NSNumber * > * isResponseValid [implementation]
 
NSPointerArray * pluginAppDelegates [implementation]
 
NSMutableDictionary< NSString *, FlutterEngineRegistrar * > * pluginRegistrars [implementation]
 
FlutterRendererrenderer [implementation]
 
BOOL semanticsEnabled [implementation]
 
FlutterPasteboardpasteboard [implementation]
 
FlutterEngineTerminationHandlerterminationHandler [implementation]
 
- Properties inherited from <FlutterUndoManagerDelegate>
NSUndoManager * undoManager
 
UIView< UITextInput > * activeTextInputView
 
- Properties inherited from <FlutterViewEngineDelegate>
BOOL isUsingImpeller
 

Additional Inherited Members

- Class Methods inherited from FlutterEngine
(BOOL+ isProfilerEnabled [implementation]
 
(NSString *) + generateThreadLabel: [implementation]
 
(flutter::ThreadHost+ makeThreadHost: [implementation]
 
(static void) + SetEntryPoint [implementation]
 
(static void) + SetThreadPriority [implementation]
 
- Protected Attributes inherited from FlutterEngine
 __pad0__: NSObject <FlutterTextureRegistry
 
 FlutterPluginRegistry
 

Detailed Description

Definition at line 23 of file FlutterEngineTest.mm.

Method Documentation

◆ ensureSemanticsEnabled

- (void) ensureSemanticsEnabled
implementation

Ensures that Flutter will generate a semantics tree.

This is enabled by default if certain accessibility services are turned on by the user, or when using a Simulator. This method allows a user to turn semantics on when they would not ordinarily be generated and the performance overhead is not a concern, e.g. for UI testing. Note that semantics should never be programmatically turned off, as it would potentially disable accessibility services an end user has requested.

This method must only be called after launching the engine via -runWithEntrypoint: or -runWithEntryPoint:libraryURI.

Although this method returns synchronously, it does not guarantee that a semantics tree is actually available when the method returns. It synchronously ensures that the next frame the Flutter framework creates will have a semantics tree.

You can subscribe to semantics updates via NSNotificationCenter by adding an observer for the name FlutterSemanticsUpdateNotification. The object parameter will be the FlutterViewController associated with the semantics update. This will asynchronously fire after a semantics tree has actually built (which may be some time after the frame has been rendered).

Reimplemented from FlutterEngine.

Definition at line 24 of file FlutterEngineTest.mm.

29 {
30 _ensureSemanticsEnabledCalled = YES;
31}

Property Documentation

◆ ensureSemanticsEnabledCalled

- (BOOL) ensureSemanticsEnabledCalled
readwritenonatomicassign

Definition at line 24 of file FlutterEngineTest.mm.


The documentation for this class was generated from the following file: