Flutter Engine
FlutterEngine() Category Reference

#import <FlutterEngine_Internal.h>

Inheritance diagram for FlutterEngine():

Instance Methods

(flutter::Shell &) - shell
 
(void) - updateViewportMetrics:
 
(void) - dispatchPointerDataPacket:
 
(fml::RefPtr< fml::TaskRunner >) - platformTaskRunner
 
(fml::RefPtr< fml::TaskRunner >) - RasterTaskRunner
 
(fml::WeakPtr< flutter::PlatformView >) - platformView
 
(flutter::Rasterizer::Screenshot- screenshot:base64Encode:
 
(FlutterPlatformPlugin *) - platformPlugin
 
(flutter::FlutterPlatformViewsController *) - platformViewsController
 
(FlutterTextInputPlugin *) - textInputPlugin
 
(void) - launchEngine:libraryURI:
 
(BOOL) - createShell:libraryURI:initialRoute:
 
(void) - attachView
 
(void) - notifyLowMemory
 
(flutter::PlatformViewIOS *) - iosPlatformView
 
(BOOL) - createShell:libraryURI:initialRoute:
 
(void) - sendUserLocales
 
(bool) - engineCallbackOnMakeCurrent
 
(bool) - engineCallbackOnClearCurrent
 
(bool) - engineCallbackOnPresent
 
(bool) - engineCallbackOnMakeResourceCurrent
 
(void) - engineCallbackOnPlatformMessage:
 
(BOOL) - populateTextureWithIdentifier:openGLTexture:
 
(void) - postMainThreadTask:targetTimeInNanoseconds:
 
(UniqueAotDataPtr- loadAOTData:
 
(void) - updateWindowMetrics
 
(void) - sendPointerEvent:
 

Properties

NSMutableDictionary * pluginPublications
 
NSMutableDictionary< NSString *, FlutterEngineRegistrar * > * registrars
 
NSString * isolateId
 
NSString * initialRoute
 
id< NSObject > flutterViewControllerWillDeallocObserver
 
BOOL running
 
NSOpenGLContext * resourceContext
 

Detailed Description

Private interface declaration for FlutterEngine.

Definition at line 45 of file FlutterEngine.mm.

Method Documentation

◆ attachView()

- (void) attachView

◆ createShell:libraryURI:initialRoute:() [1/2]

- (BOOL) createShell: (NSString *)  entrypoint
libraryURI: (NSString *)  libraryURI
initialRoute: (NSString *)  initialRoute 

◆ createShell:libraryURI:initialRoute:() [2/2]

- (BOOL) createShell: (NSString *)  entrypoint
libraryURI: (NSString *)  libraryOrNil
initialRoute: (NSString *)  initialRoute 

◆ dispatchPointerDataPacket:()

- (void) dispatchPointerDataPacket: (std::unique_ptr< flutter::PointerDataPacket >)  packet

◆ engineCallbackOnClearCurrent()

- (bool) engineCallbackOnClearCurrent

Called by the engine to clear the context the engine should draw into.

◆ engineCallbackOnMakeCurrent()

- (bool) engineCallbackOnMakeCurrent

Called by the engine to make the context the engine should draw into current.

◆ engineCallbackOnMakeResourceCurrent()

- (bool) engineCallbackOnMakeResourceCurrent

Makes the resource context the current context.

◆ engineCallbackOnPlatformMessage:()

- (void) engineCallbackOnPlatformMessage: (const FlutterPlatformMessage *)  message

Handles a platform message from the engine.

◆ engineCallbackOnPresent()

- (bool) engineCallbackOnPresent

Called by the engine when the context's buffers should be swapped.

◆ iosPlatformView()

- (PlatformViewIOS* FlutterEngine()):

◆ launchEngine:libraryURI:()

- (void) launchEngine: (NSString *)  entrypoint
libraryURI: (NSString *)  libraryOrNil 

◆ loadAOTData:()

- (UniqueAotDataPtr) loadAOTData: (NSString *)  assetsDir

Loads the AOT snapshots and instructions from the elf bundle (app_elf_snapshot.so) if it is present in the assets directory.

◆ notifyLowMemory()

- (void) notifyLowMemory

◆ platformPlugin()

- (FlutterPlatformPlugin*) platformPlugin

◆ platformTaskRunner()

- (RefPtr<)fml:

◆ platformView()

- (WeakPtr<)flutter:

◆ platformViewsController()

- (FlutterPlatformViewsController* FlutterEngine()):

◆ populateTextureWithIdentifier:openGLTexture:()

- (BOOL) populateTextureWithIdentifier: (int64_t)  textureID
openGLTexture: (FlutterOpenGLTexture *)  openGLTexture 

Forwards texture copy request to the corresponding texture via |textureID|.

◆ postMainThreadTask:targetTimeInNanoseconds:()

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

◆ RasterTaskRunner()

- (RefPtr<)fml:

◆ screenshot:base64Encode:()

- Rasterizer: (flutter::Rasterizer::ScreenshotType type
base64Encode: (bool)  base64Encode 

◆ sendPointerEvent:()

- (void) sendPointerEvent: (const FlutterPointerEvent &)  event

Dispatches the given pointer event data to engine.

◆ sendUserLocales()

- (void) sendUserLocales

Sends the list of user-preferred locales to the Flutter engine.

◆ shell()

- (Shell& FlutterEngine()):

◆ textInputPlugin()

- (FlutterTextInputPlugin*) textInputPlugin

◆ updateViewportMetrics:()

- (void) updateViewportMetrics: (flutter::ViewportMetrics viewportMetrics

◆ updateWindowMetrics()

- (void) updateWindowMetrics

Informs the engine that the associated view controller's view size has changed.

Property Documentation

◆ flutterViewControllerWillDeallocObserver

- (id<NSObject>) flutterViewControllerWillDeallocObserver
readwritenonatomicretain

Definition at line 53 of file FlutterEngine.mm.

◆ initialRoute

- (NSString*) initialRoute
readwritenonatomiccopy

Definition at line 52 of file FlutterEngine.mm.

◆ isolateId

- (NSString*) isolateId
readwritenonatomiccopy

Definition at line 51 of file FlutterEngine.mm.

◆ pluginPublications

- (NSMutableDictionary*) pluginPublications
readnonatomicassign

Definition at line 48 of file FlutterEngine.mm.

◆ registrars

- (NSMutableDictionary<NSString*, FlutterEngineRegistrar*>*) registrars
readnonatomicassign

Definition at line 49 of file FlutterEngine.mm.

◆ resourceContext

- (NSOpenGLContext*) resourceContext
readnonatomicassign

The resource context used by the engine for texture uploads. FlutterViews associated with this engine should be created to share with this context.

Definition at line 22 of file FlutterEngine_Internal.h.

◆ running

- (BOOL) running
readnonatomicassign

True if the engine is currently running.

Definition at line 16 of file FlutterEngine_Internal.h.


The documentation for this category was generated from the following files: