Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Public Member Functions | Package Functions | List of all members
dev.flutter.scenarios.TextPlatformViewFactory Class Reference
Inheritance diagram for dev.flutter.scenarios.TextPlatformViewFactory:

Public Member Functions

PlatformView create (@NonNull Context context, int id, @Nullable Object args)
 

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: