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

Instance Methods

(NSArray< NSScreen * > *) - screens [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:
 

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
 
- 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
 

Detailed Description

Definition at line 123 of file FlutterEngineTest.mm.

Method Documentation

◆ screens

- (NSArray< NSScreen * > *) screens
implementation

Returns an array of screen objects representing all of the screens available on the system.

Reimplemented from FlutterEngine.

Definition at line 73 of file FlutterEngineTest.mm.

127 {
128 id mockScreen = OCMClassMock([NSScreen class]);
129 OCMStub([mockScreen backingScaleFactor]).andReturn(2.0);
130 OCMStub([mockScreen deviceDescription]).andReturn(@{
131 @"NSScreenNumber" : [NSNumber numberWithInt:10]
132 });
133 OCMStub([mockScreen frame]).andReturn(NSMakeRect(10, 20, 30, 40));
134 return [NSArray arrayWithObject:mockScreen];
135}
double frame
Definition: examples.cpp:31

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