Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | List of all members
io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewCreationRequest Class Reference

Classes

enum  RequestedDisplayMode
 

Public Member Functions

 PlatformViewCreationRequest (int viewId, @NonNull String viewType, double logicalTop, double logicalLeft, double logicalWidth, double logicalHeight, int direction, @Nullable ByteBuffer params)
 
 PlatformViewCreationRequest (int viewId, @NonNull String viewType, double logicalTop, double logicalLeft, double logicalWidth, double logicalHeight, int direction, RequestedDisplayMode displayMode, @Nullable ByteBuffer params)
 

Public Attributes

final int viewId
 
final String viewType
 
final double logicalWidth
 
final double logicalHeight
 
final double logicalTop
 
final double logicalLeft
 
final int direction
 
final RequestedDisplayMode displayMode
 
final ByteBuffer params
 

Detailed Description

Request sent from Flutter to create a new platform view.

Definition at line 367 of file PlatformViewsChannel.java.

Constructor & Destructor Documentation

◆ PlatformViewCreationRequest() [1/2]

io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewCreationRequest.PlatformViewCreationRequest ( int  viewId,
@NonNull String  viewType,
double  logicalTop,
double  logicalLeft,
double  logicalWidth,
double  logicalHeight,
int  direction,
@Nullable ByteBuffer  params 
)
inline

Creates a request to construct a platform view.

Definition at line 410 of file PlatformViewsChannel.java.

418 {
419 this(
420 viewId,
421 viewType,
426 direction,
427 RequestedDisplayMode.TEXTURE_WITH_VIRTUAL_FALLBACK,
428 params);
429 }

◆ PlatformViewCreationRequest() [2/2]

io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewCreationRequest.PlatformViewCreationRequest ( int  viewId,
@NonNull String  viewType,
double  logicalTop,
double  logicalLeft,
double  logicalWidth,
double  logicalHeight,
int  direction,
RequestedDisplayMode  displayMode,
@Nullable ByteBuffer  params 
)
inline

Creates a request to construct a platform view with the given display mode.

Definition at line 432 of file PlatformViewsChannel.java.

441 {
442 this.viewId = viewId;
443 this.viewType = viewType;
444 this.logicalTop = logicalTop;
445 this.logicalLeft = logicalLeft;
446 this.logicalWidth = logicalWidth;
447 this.logicalHeight = logicalHeight;
448 this.direction = direction;
449 this.displayMode = displayMode;
450 this.params = params;
451 }

Member Data Documentation

◆ direction

final int io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewCreationRequest.direction

The layout direction of the new platform view.

See android.view.View#LAYOUT_DIRECTION_LTR and android.view.View#LAYOUT_DIRECTION_RTL

Definition at line 402 of file PlatformViewsChannel.java.

◆ displayMode

final RequestedDisplayMode io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewCreationRequest.displayMode

Definition at line 404 of file PlatformViewsChannel.java.

◆ logicalHeight

final double io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewCreationRequest.logicalHeight

The density independent height to display the platform view.

Definition at line 388 of file PlatformViewsChannel.java.

◆ logicalLeft

final double io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewCreationRequest.logicalLeft

The density independent left position to display the platform view.

Definition at line 394 of file PlatformViewsChannel.java.

◆ logicalTop

final double io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewCreationRequest.logicalTop

The density independent top position to display the platform view.

Definition at line 391 of file PlatformViewsChannel.java.

◆ logicalWidth

final double io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewCreationRequest.logicalWidth

The density independent width to display the platform view.

Definition at line 385 of file PlatformViewsChannel.java.

◆ params

final ByteBuffer io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewCreationRequest.params

Custom parameters that are unique to the desired platform view.

Definition at line 407 of file PlatformViewsChannel.java.

◆ viewId

final int io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewCreationRequest.viewId

The ID of the platform view as seen by the Flutter side.

Definition at line 379 of file PlatformViewsChannel.java.

◆ viewType

final String io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewCreationRequest.viewType

The type of Android View to create for this platform view.

Definition at line 382 of file PlatformViewsChannel.java.


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