Class PlatformViewsChannel.PlatformViewCreationRequest
java.lang.Object
io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewCreationRequest
- Enclosing class:
- PlatformViewsChannel
Request sent from Flutter to create a new platform view.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Platform view display modes that can be requested at creation time. -
Field Summary
Modifier and TypeFieldDescriptionfinal int
The layout direction of the new platform view.final double
The density independent height to display the platform view.final double
The density independent left position to display the platform view.final double
The density independent top position to display the platform view.final double
The density independent width to display the platform view.final ByteBuffer
Custom parameters that are unique to the desired platform view.final int
The ID of the platform view as seen by the Flutter side.final String
The type of AndroidView
to create for this platform view. -
Constructor Summary
ConstructorDescriptionPlatformViewCreationRequest
(int viewId, String viewType, double logicalTop, double logicalLeft, double logicalWidth, double logicalHeight, int direction, PlatformViewsChannel.PlatformViewCreationRequest.RequestedDisplayMode displayMode, ByteBuffer params) Creates a request to construct a platform view with the given display mode.PlatformViewCreationRequest
(int viewId, String viewType, double logicalTop, double logicalLeft, double logicalWidth, double logicalHeight, int direction, ByteBuffer params) Creates a request to construct a platform view. -
Method Summary
-
Field Details
-
viewId
public final int viewIdThe ID of the platform view as seen by the Flutter side. -
viewType
The type of AndroidView
to create for this platform view. -
logicalWidth
public final double logicalWidthThe density independent width to display the platform view. -
logicalHeight
public final double logicalHeightThe density independent height to display the platform view. -
logicalTop
public final double logicalTopThe density independent top position to display the platform view. -
logicalLeft
public final double logicalLeftThe density independent left position to display the platform view. -
direction
public final int directionThe layout direction of the new platform view. -
displayMode
-
params
Custom parameters that are unique to the desired platform view.
-
-
Constructor Details
-
PlatformViewCreationRequest
public PlatformViewCreationRequest(int viewId, @NonNull String viewType, double logicalTop, double logicalLeft, double logicalWidth, double logicalHeight, int direction, @Nullable ByteBuffer params) Creates a request to construct a platform view. -
PlatformViewCreationRequest
public PlatformViewCreationRequest(int viewId, @NonNull String viewType, double logicalTop, double logicalLeft, double logicalWidth, double logicalHeight, int direction, PlatformViewsChannel.PlatformViewCreationRequest.RequestedDisplayMode displayMode, @Nullable ByteBuffer params) Creates a request to construct a platform view with the given display mode.
-