Definition at line 12 of file PlatformViewFactory.java.
◆ PlatformViewFactory()
io.flutter.plugin.platform.PlatformViewFactory.PlatformViewFactory |
( |
@Nullable MessageCodec< Object > |
createArgsCodec | ) |
|
|
inline |
- Parameters
-
createArgsCodec | the codec used to decode the args parameter of create . |
Definition at line 16 of file PlatformViewFactory.java.
16 {
17 this.createArgsCodec = createArgsCodec;
18 }
◆ create()
abstract PlatformView io.flutter.plugin.platform.PlatformViewFactory.create |
( |
Context |
context, |
|
|
int |
viewId, |
|
|
@Nullable Object |
args |
|
) |
| |
|
abstract |
Creates a new Android view to be embedded in the Flutter hierarchy.
- Parameters
-
context | the context to be used when creating the view, this is different than FlutterView's context. |
viewId | unique identifier for the created instance, this value is known on the Dart side. |
args | arguments sent from the Flutter app. The bytes for this value are decoded using the createArgsCodec argument passed to the constructor. This is null if createArgsCodec was null, or no arguments were sent from the Flutter app. |
◆ getCreateArgsCodec()
final MessageCodec< Object > io.flutter.plugin.platform.PlatformViewFactory.getCreateArgsCodec |
( |
| ) |
|
|
inline |
Returns the codec to be used for decoding the args parameter of create
.
Definition at line 35 of file PlatformViewFactory.java.
35 {
36 return createArgsCodec;
37 }
The documentation for this class was generated from the following file: