Flutter Engine
The Flutter Engine
|
Properties | |
FlutterEngine * | flutterEngine |
NSObject * | publishedValue |
Properties inherited from <FlutterPluginRegistrar> | |
id< FlutterBinaryMessenger > | messenger |
id< FlutterTextureRegistry > | textures |
NSView * | view |
FlutterPluginRegistrar
implementation handling a single plugin.
Definition at line 89 of file FlutterEngine.mm.
|
implementation |
Registers the plugin as a receiver of UIApplicationDelegate
calls.
delegate | The receiving object, such as the plugin's main class. |
Reimplemented from <FlutterPluginRegistrar>.
Definition at line 822 of file FlutterEngine.mm.
|
implementation |
Definition at line 323 of file FlutterEngine.mm.
|
implementation |
Registers |delegate| to receive handleMethodCall:result: callbacks for the given |channel|.
Reimplemented from <FlutterPluginRegistrar>.
Definition at line 323 of file FlutterEngine.mm.
|
implementation |
Registers the plugin as a receiver of incoming method calls from the Dart side on the specified FlutterMethodChannel
.
delegate | The receiving object, such as the plugin's main class. |
channel | The channel |
Reimplemented from <FlutterPluginRegistrar>.
Definition at line 822 of file FlutterEngine.mm.
|
implementation |
Definition at line 822 of file FlutterEngine.mm.
- (instancetype) initWithPlugin: | (nonnull NSString *) | pluginKey | |
flutterEngine: | (nonnull FlutterEngine *) | flutterEngine | |
- (instancetype) initWithPlugin: | (NSString*) | pluginKey | |
flutterEngine: | (FlutterEngine*) | flutterEngine | |
Definition at line 822 of file FlutterEngine.mm.
|
implementation |
Returns the file name for the given asset. The returned file name can be used to access the asset in the application's main bundle.
asset | The name of the asset. The name can be hierarchical. |
Reimplemented from <FlutterPluginRegistrar>.
Definition at line 822 of file FlutterEngine.mm.
|
implementation |
Returns the file name for the given asset which originates from the specified package. The returned file name can be used to access the asset in the application's main bundle.
asset | The name of the asset. The name can be hierarchical. |
package | The name of the package from which the asset originates. |
Reimplemented from <FlutterPluginRegistrar>.
Definition at line 822 of file FlutterEngine.mm.
|
implementation |
The binary messenger used for creating channels to communicate with the Flutter engine.
Reimplemented from <FlutterPluginRegistrar>.
Definition at line 822 of file FlutterEngine.mm.
|
implementation |
Publishes a value for external use of the plugin.
Plugins may publish a single value, such as an instance of the plugin's main class, for situations where external control or interaction is needed.
The published value will be available from the FlutterPluginRegistry
. Repeated calls overwrite any previous publication.
value | The value to be published. |
Reimplemented from <FlutterPluginRegistrar>.
Definition at line 822 of file FlutterEngine.mm.
|
implementation |
Registers a FlutterPlatformViewFactory
for creation of platform views.
Plugins expose NSView
for embedding in Flutter apps by registering a view factory.
factory | The view factory that will be registered. |
factoryId | A unique identifier for the factory, the Dart code of the Flutter app can use this identifier to request creation of a NSView by the registered factory. |
Reimplemented from <FlutterPluginRegistrar>.
Definition at line 323 of file FlutterEngine.mm.
|
implementation |
Registers a FlutterPlatformViewFactory
for creation of platform views.
Plugins expose UIView
for embedding in Flutter apps by registering a view factory.
factory | The view factory that will be registered. |
factoryId | A unique identifier for the factory, the Dart code of the Flutter app can use this identifier to request creation of a UIView by the registered factory. |
Reimplemented from <FlutterPluginRegistrar>.
Definition at line 822 of file FlutterEngine.mm.
|
implementation |
Registers a FlutterPlatformViewFactory
for creation of platform views.
Plugins can expose a UIView
for embedding in Flutter apps by registering a view factory.
factory | The view factory that will be registered. |
factoryId | A unique identifier for the factory, the Dart code of the Flutter app can use this identifier to request creation of a UIView by the registered factory. |
gestureRecognizersBlockingPolicy | How UIGestureRecognizers on the platform views are blocked. |
Reimplemented from <FlutterPluginRegistrar>.
Definition at line 822 of file FlutterEngine.mm.
|
implementation |
Returns a FlutterTextureRegistry
for registering textures provided by the plugin.
Reimplemented from <FlutterPluginRegistrar>.
Definition at line 822 of file FlutterEngine.mm.
|
implementation |
The view displaying Flutter content.
This property is provided for backwards compatibility for apps that assume a single view. This will eventually be replaced by a multi-view API variant.
This method may return |nil|, for instance in a headless environment.
Reimplemented from <FlutterPluginRegistrar>.
Definition at line 323 of file FlutterEngine.mm.
- (NSView *) viewForIdentifier: | (FlutterViewIdentifier) | viewIdentifier |
Definition at line 323 of file FlutterEngine.mm.
|
readwritenonatomicassign |
Definition at line 90 of file FlutterEngine.mm.
|
readnonatomicassign |
The value published by this plugin, or NSNull if nothing has been published.
The unusual NSNull is for the documented behavior of valuePublishedByPlugin:.
Definition at line 318 of file FlutterEngine.mm.