Flutter Engine
The Flutter Engine
Classes | Public Member Functions | Package Functions | List of all members
dev.flutter.scenarios.TextPlatformViewFactory Class Reference
Inheritance diagram for dev.flutter.scenarios.TextPlatformViewFactory:
io.flutter.plugin.platform.PlatformViewFactory

Public Member Functions

PlatformView create (@NonNull Context context, int id, @Nullable Object args)
 
- Public Member Functions inherited from io.flutter.plugin.platform.PlatformViewFactory
 PlatformViewFactory (@Nullable MessageCodec< Object > createArgsCodec)
 
abstract PlatformView create (Context context, int viewId, @Nullable Object args)
 
final MessageCodec< Object > getCreateArgsCodec ()
 

Package Functions

 TextPlatformViewFactory ()
 

Detailed Description

Definition at line 19 of file TextPlatformViewFactory.java.

Constructor & Destructor Documentation

◆ 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 }

Member Function Documentation

◆ create()

PlatformView dev.flutter.scenarios.TextPlatformViewFactory.create ( @NonNull Context  context,
int  id,
@Nullable Object  args 
)
inline

Definition at line 43 of file TextPlatformViewFactory.java.

43 {
44 String params = (String) args;
45 return new TextPlatformView(context, id, params);
46 }
const EmbeddedViewParams * params
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args

The documentation for this class was generated from the following file: