Class PlatformViewsChannel
java.lang.Object
io.flutter.embedding.engine.systemchannels.PlatformViewsChannel
System channel that sends 2-way communication between Flutter and Android to facilitate embedding
of Android Views within a Flutter application.
Register a PlatformViewsChannel.PlatformViewsHandler
to implement the Android side of this channel.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Allows to notify when a platform view buffer has been resized.static class
The platform view buffer size.static class
Request sent from Flutter to create a new platform view.static class
Request sent from Flutter to resize a platform view.static interface
Handler that receives platform view messages sent from Flutter to Android through a givenPlatformViewsChannel
.static class
The state of a touch event in Flutter within a platform view. -
Constructor Summary
ConstructorDescriptionPlatformViewsChannel
(DartExecutor dartExecutor) Constructs aPlatformViewsChannel
that connects Android to the Dart code running indartExecutor
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
invokeViewFocused
(int viewId) void
Sets thePlatformViewsChannel.PlatformViewsHandler
which receives all events and requests that are parsed from the underlying platform views channel.
-
Constructor Details
-
PlatformViewsChannel
Constructs aPlatformViewsChannel
that connects Android to the Dart code running indartExecutor
.The given
dartExecutor
is permitted to be idle or executing code.See
DartExecutor
.
-
-
Method Details
-
invokeViewFocused
public void invokeViewFocused(int viewId) -
setPlatformViewsHandler
Sets thePlatformViewsChannel.PlatformViewsHandler
which receives all events and requests that are parsed from the underlying platform views channel.
-