Class PlatformViewsChannel
- java.lang.Object
-
- io.flutter.embedding.engine.systemchannels.PlatformViewsChannel
-
public class PlatformViewsChannel extends Object
System channel that sends 2-way communication between Flutter and Android to facilitate embedding of Android Views within a Flutter application.Register a
PlatformViewsChannel.PlatformViewsHandlerto implement the Android side of this channel.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePlatformViewsChannel.PlatformViewBufferResizedAllows to notify when a platform view buffer has been resized.static classPlatformViewsChannel.PlatformViewBufferSizeThe platform view buffer size.static classPlatformViewsChannel.PlatformViewCreationRequestRequest sent from Flutter to create a new platform view.static classPlatformViewsChannel.PlatformViewResizeRequestRequest sent from Flutter to resize a platform view.static interfacePlatformViewsChannel.PlatformViewsHandlerHandler that receives platform view messages sent from Flutter to Android through a givenPlatformViewsChannel.static classPlatformViewsChannel.PlatformViewTouchThe state of a touch event in Flutter within a platform view.
-
Constructor Summary
Constructors Constructor Description PlatformViewsChannel(DartExecutor dartExecutor)Constructs aPlatformViewsChannelthat connects Android to the Dart code running indartExecutor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinvokeViewFocused(int viewId)voidsetPlatformViewsHandler(PlatformViewsChannel.PlatformViewsHandler handler)Sets thePlatformViewsChannel.PlatformViewsHandlerwhich receives all events and requests that are parsed from the underlying platform views channel.
-
-
-
Constructor Detail
-
PlatformViewsChannel
public PlatformViewsChannel(@NonNull DartExecutor dartExecutor)Constructs aPlatformViewsChannelthat connects Android to the Dart code running indartExecutor.The given
dartExecutoris permitted to be idle or executing code.See
DartExecutor.
-
-
Method Detail
-
invokeViewFocused
public void invokeViewFocused(int viewId)
-
setPlatformViewsHandler
public void setPlatformViewsHandler(@Nullable PlatformViewsChannel.PlatformViewsHandler handler)Sets thePlatformViewsChannel.PlatformViewsHandlerwhich receives all events and requests that are parsed from the underlying platform views channel.
-
-