Flutter Engine
The Flutter Engine
|
Instance Methods | |
(nonnull NSView *) | - createWithViewIdentifier:arguments: [implementation] |
Instance Methods inherited from <FlutterPlatformViewFactory> | |
(NSObject< FlutterPlatformView > *) | - createWithFrame:viewIdentifier:arguments: |
(NSObject< FlutterMessageCodec > *) | - createArgsCodec |
(nonnull NSView *) | - createWithViewIdentifier:arguments: |
(nullable NSObject< FlutterMessageCodec > *) | - createArgsCodec |
Definition at line 48 of file FlutterEngineTest.mm.
|
implementation |
Create a Platform View which is an NSView
.
A MacOS plugin should implement this method and return an NSView
, which can be embedded in a Flutter App.
The implementation of this method should create a new NSView
.
viewId | A unique identifier for this view. |
args | Parameters for creating the view sent from the Dart side of the Flutter app. If createArgsCodec is not implemented, or if no creation arguments were sent from the Dart code, this will be null. Otherwise this will be the value sent from the Dart code as decoded by createArgsCodec . |
Reimplemented from <FlutterPlatformViewFactory>.
Definition at line 44 of file FlutterEngineTest.mm.