public class PlatformViewsChannel extends Object
Register a PlatformViewsChannel.PlatformViewsHandler
to implement the Android side of this channel.
Modifier and Type | Class and Description |
---|---|
static class |
PlatformViewsChannel.PlatformViewCreationRequest
Request sent from Flutter to create a new platform view.
|
static class |
PlatformViewsChannel.PlatformViewResizeRequest
Request sent from Flutter to resize a platform view.
|
static interface |
PlatformViewsChannel.PlatformViewsHandler
Handler that receives platform view messages sent from Flutter to Android through a given
PlatformViewsChannel . |
static class |
PlatformViewsChannel.PlatformViewTouch
The state of a touch event in Flutter within a platform view.
|
Constructor and Description |
---|
PlatformViewsChannel(DartExecutor dartExecutor)
Constructs a
PlatformViewsChannel that connects Android to the Dart code running in
dartExecutor . |
Modifier and Type | Method and Description |
---|---|
void |
invokeViewFocused(int viewId) |
void |
setPlatformViewsHandler(PlatformViewsChannel.PlatformViewsHandler handler)
Sets the
PlatformViewsChannel.PlatformViewsHandler which receives all events and requests that are parsed
from the underlying platform views channel. |
public PlatformViewsChannel(@NonNull DartExecutor dartExecutor)
PlatformViewsChannel
that connects Android to the Dart code running in
dartExecutor
.
The given dartExecutor
is permitted to be idle or executing code.
See DartExecutor
.
public void invokeViewFocused(int viewId)
public void setPlatformViewsHandler(@Nullable PlatformViewsChannel.PlatformViewsHandler handler)
PlatformViewsChannel.PlatformViewsHandler
which receives all events and requests that are parsed
from the underlying platform views channel.