Flutter Engine
The Flutter Engine
|
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 | |
Definition at line 23 of file FlutterEngineTest.mm.
|
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.
|
readwritenonatomicassign |
Definition at line 24 of file FlutterEngineTest.mm.