Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Attributes | List of all members
io.flutter.embedding.android.RenderMode Enum Reference

Public Attributes

 surface
 
 texture
 
 image
 

Detailed Description

Render modes for a Flutter UI.

Definition at line 8 of file RenderMode.java.

Member Data Documentation

◆ image

io.flutter.embedding.android.RenderMode.image

RenderMode, which paints Paints a Flutter UI provided by an android.media.ImageReader onto a android.graphics.Canvas. This mode is not as performant as RenderMode#surface, but a FlutterView in this mode can handle full interactivity with a io.flutter.plugin.platform.PlatformView. Unless io.flutter.plugin.platform.PlatformViews are required developers should strongly prefer the RenderMode#surface render mode.

Definition at line 34 of file RenderMode.java.

◆ surface

io.flutter.embedding.android.RenderMode.surface

RenderMode, which paints a Flutter UI to a android.view.SurfaceView. This mode has the best performance, but a Flutter UI in this mode cannot be positioned between 2 other Android Views in the z-index, nor can it be animated/transformed. Unless the special capabilities of a android.graphics.SurfaceTexture are required, developers should strongly prefer this render mode.

Definition at line 16 of file RenderMode.java.

◆ texture

io.flutter.embedding.android.RenderMode.texture

RenderMode, which paints a Flutter UI to a android.graphics.SurfaceTexture. This mode is not as performant as surface, but a Flutter UI in this mode can be animated and transformed, as well as positioned in the z-index between 2+ other Android
Views
. Unless the special capabilities of a android.graphics.SurfaceTexture are required, developers should strongly prefer the surface render mode.

Definition at line 24 of file RenderMode.java.


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