◆ TexturePlatformViewFactory()
dev.flutter.scenarios.TexturePlatformViewFactory.TexturePlatformViewFactory |
( |
| ) |
|
|
inlinepackage |
Definition at line 29 of file TexturePlatformViewFactory.java.
29 {
30 super(
31 new MessageCodec<Object>() {
32 @Nullable
33 @Override
34 public ByteBuffer encodeMessage(@Nullable Object o) {
35 if (o instanceof String) {
36 return StringCodec.INSTANCE.encodeMessage((String) o);
37 }
38 return null;
39 }
40
41 @Nullable
42 @Override
43 public Object decodeMessage(@Nullable ByteBuffer byteBuffer) {
44 return StringCodec.INSTANCE.decodeMessage(byteBuffer);
45 }
46 });
47 }
◆ create()
PlatformView dev.flutter.scenarios.TexturePlatformViewFactory.create |
( |
@NonNull Context |
context, |
|
|
int |
id, |
|
|
@Nullable Object |
args |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file: