5package dev.flutter.scenarios;
11import androidx.annotation.NonNull;
12import androidx.annotation.Nullable;
13import io.flutter.plugin.common.MessageCodec;
14import io.flutter.plugin.common.StringCodec;
15import io.flutter.plugin.platform.PlatformView;
16import io.flutter.plugin.platform.PlatformViewFactory;
17import java.nio.ByteBuffer;
25 public ByteBuffer encodeMessage(@Nullable Object o) {
26 if (o instanceof String) {
34 public Object decodeMessage(@Nullable ByteBuffer byteBuffer) {
40 @SuppressWarnings(
"unchecked")
49 final TextView textView;
51 @SuppressWarnings(
"unchecked")
53 textView =
new TextView(context);
54 textView.setTextSize(72);
55 textView.setBackgroundColor(
Color.WHITE);
61 public View getView() {
66 public void dispose() {}
PlatformView create(@NonNull Context context, int id, @Nullable Object args)
TextPlatformViewFactory()
static final StringCodec INSTANCE
ByteBuffer encodeMessage(@Nullable String message)
String decodeMessage(@Nullable ByteBuffer message)
const EmbeddedViewParams * params
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
SK_API sk_sp< SkShader > Color(SkColor)