Flutter iOS Embedder
FlutterEnginePartialMock Class Reference
Inheritance diagram for FlutterEnginePartialMock:
FlutterEngine <FlutterPluginRegistry>

Instance Methods

(FlutterTextInputPlugin *) - textInputPlugin
 
(void) - sendKeyEvent:callback:userData:
 
(nullable FlutterFMLTaskRunner *) - uiTaskRunner
 
(BOOL) - runWithEntrypoint:
 
(void) - attachView
 
- Instance Methods inherited from FlutterEngine
(instancetype) - NS_SWIFT_UI_ACTOR
 
(instancetype) - initWithName:
 
(instancetype) - initWithName:project:
 
(instancetype) - initWithName:project:allowHeadlessExecution:
 
(instancetype) - initWithName:project:allowHeadlessExecution:restorationEnabled:
 
(BOOL) - NS_SWIFT_UI_ACTOR
 
(BOOL) - runWithEntrypoint:initialRoute:
 
(BOOL) - runWithEntrypoint:libraryURI:
 
(BOOL) - runWithEntrypoint:libraryURI:initialRoute:
 
(BOOL) - runWithEntrypoint:libraryURI:initialRoute:entrypointArgs:
 
(void) - destroyContext
 
(void) - ensureSemanticsEnabled
 
(BOOL isGpuDisabled) - FLUTTER_DEPRECATED
 
(nullable FlutterFMLTaskRunner *) - platformTaskRunner
 
(nullable FlutterFMLTaskRunner *) - rasterTaskRunner
 
(flutter::Shell &) - shell
 
(flutter::PlatformViewIOS *) - platformView
 
(void) - setBinaryMessenger:
 
(void) - waitForFirstFrame:callback:
 
(FlutterEngine *) - spawnWithEntrypoint:libraryURI:initialRoute:entrypointArgs:
 
(const flutter::ThreadHost &) - threadHost
 
(void) - updateDisplays
 
(void) - sendDisplayWithScreenNativeSize:scale:
 
(void) - flutterTextInputView:performAction:withClient:
 
(void) - sceneWillEnterForeground:
 
(void) - sceneDidEnterBackground:
 
(void) - applicationWillEnterForeground:
 
(void) - applicationDidEnterBackground:
 
(NSString *) - lookupKeyForAsset:
 
(NSString *) - lookupKeyForAsset:fromPackage:
 
- Instance Methods inherited from <FlutterPluginRegistry>
(nullable NSObject< FlutterPluginRegistrar > *) - registrarForPlugin:
 
(BOOL) - hasPlugin:
 
(nullable NSObject *) - valuePublishedByPlugin:
 

Properties

FlutterBasicMessageChannel * lifecycleChannel
 
FlutterBasicMessageChannel * keyEventChannel
 
FlutterViewController * viewController
 
FlutterTextInputPlugin * textInputPlugin
 
BOOL didCallNotifyLowMemory
 
FlutterFMLTaskRunner * uiTaskRunner
 
- Properties inherited from FlutterEngine
FlutterViewController * viewController
 
FlutterMethodChannel * localizationChannel
 
FlutterMethodChannel * navigationChannel
 
FlutterMethodChannel * restorationChannel
 
FlutterMethodChannel * platformChannel
 
FlutterMethodChannel * textInputChannel
 
FlutterBasicMessageChannel * lifecycleChannel
 
FlutterBasicMessageChannel * systemChannel
 
FlutterBasicMessageChannel * settingsChannel
 
FlutterBasicMessageChannel * keyEventChannel
 
NSURL * vmServiceUrl
 
NSObject< FlutterBinaryMessenger > * binaryMessenger
 
NSObject< FlutterTextureRegistry > * textureRegistry
 
NSString * isolateId
 
FlutterEngineProcTable & embedderAPI
 
BOOL enableEmbedderAPI
 
BOOL allowHeadlessExecution
 
NSMutableDictionary * pluginPublications
 
FlutterRestorationPlugin * restorationPlugin
 

Detailed Description

Sometimes we have to use a custom mock to avoid retain cycles in OCMock. Used for testing low memory notification.

Definition at line 218 of file FlutterViewControllerTest.mm.

Method Documentation

◆ attachView

- (void) attachView

Definition at line 225 of file FlutterViewControllerTest.mm.

267  {
268  // Do nothing to avoid crash when platformView is nil on bots.
269 }

◆ runWithEntrypoint:

- (BOOL) runWithEntrypoint: (nullable NSString *)  NS_SWIFT_UI_ACTOR

Runs a Dart program on an Isolate from the main Dart library (i.e. the library that contains main()), using "/" (the default route) as the initial route.

The first call to this method creates a new Isolate and returns YES. Subsequent calls return NO immediately and have no effect.

This method must be called on the main thread. See the FlutterEngine class documentation.

Parameters
entrypointThe name of a top-level function from the same Dart library that contains the app's main() function. If this is FlutterDefaultDartEntrypoint (or nil) it will default to main(). If it is not the app's main() function, that function must be decorated with @pragma(vm:entry-point) to ensure the method is not tree-shaken by the Dart compiler.
Returns
YES if this call started the engine; NO if it was already invoked, has been destroyed, or could not be started.

Reimplemented from FlutterEngine.

Definition at line 225 of file FlutterViewControllerTest.mm.

263  :(nullable NSString*)entrypoint {
264  return YES;
265 }

◆ sendKeyEvent:callback:userData:

- (void) sendKeyEvent: (const FlutterKeyEvent &)  event
callback: (nullable FlutterKeyEventCallback)  callback
userData: (nullable void *)  userData 

◆ textInputPlugin

- (FlutterTextInputPlugin*) textInputPlugin

◆ uiTaskRunner

- (nullable FlutterFMLTaskRunner*) uiTaskRunner

The task runner for the UI thread, where framework code runs.

Reimplemented from FlutterEngine.

Property Documentation

◆ didCallNotifyLowMemory

- (BOOL) didCallNotifyLowMemory
readwritenonatomicassign

Definition at line 224 of file FlutterViewControllerTest.mm.

◆ keyEventChannel

- (FlutterBasicMessageChannel*) keyEventChannel
readwritenonatomicstrong

Definition at line 221 of file FlutterViewControllerTest.mm.

◆ lifecycleChannel

- (FlutterBasicMessageChannel*) lifecycleChannel
readwritenonatomicstrong

Definition at line 220 of file FlutterViewControllerTest.mm.

◆ textInputPlugin

- (FlutterTextInputPlugin*) textInputPlugin
readwritenonatomicstrong

Definition at line 223 of file FlutterViewControllerTest.mm.

◆ uiTaskRunner

- (nullable FlutterFMLTaskRunner *) uiTaskRunner
readwritenonatomicstrong

Definition at line 225 of file FlutterViewControllerTest.mm.

◆ viewController

- (FlutterViewController*) viewController
readwritenonatomicweak

Definition at line 222 of file FlutterViewControllerTest.mm.


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