◆ TextPlatformViewFactory()
dev.flutter.scenarios.TextPlatformViewFactory.TextPlatformViewFactory |
( |
| ) |
|
|
inlinepackage |
Definition at line 20 of file TextPlatformViewFactory.java.
20 {
21 super(
22 new MessageCodec<Object>() {
23 @Nullable
24 @Override
25 public ByteBuffer encodeMessage(@Nullable Object o) {
26 if (o instanceof String) {
27 return StringCodec.INSTANCE.encodeMessage((String) o);
28 }
29 return null;
30 }
31
32 @Nullable
33 @Override
34 public Object decodeMessage(@Nullable ByteBuffer byteBuffer) {
35 return StringCodec.INSTANCE.decodeMessage(byteBuffer);
36 }
37 });
38 }
◆ create()
PlatformView dev.flutter.scenarios.TextPlatformViewFactory.create |
( |
@NonNull Context |
context, |
|
|
int |
id, |
|
|
@Nullable Object |
args |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file: