Flutter Engine
The Flutter Engine
Classes | Public Member Functions | Package Functions | List of all members
dev.flutter.scenarios.TexturePlatformViewFactory Class Reference
Inheritance diagram for dev.flutter.scenarios.TexturePlatformViewFactory:
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

 TexturePlatformViewFactory ()
 

Detailed Description

Definition at line 28 of file TexturePlatformViewFactory.java.

Constructor & Destructor Documentation

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

Member Function Documentation

◆ create()

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

Definition at line 52 of file TexturePlatformViewFactory.java.

52 {
53 return new TexturePlatformView(context);
54 }

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