Flutter Engine
The Flutter Engine
|
Classes | |
interface | GLTextureConsumer |
interface | ImageConsumer |
interface | ImageTextureEntry |
interface | OnFrameConsumedListener |
interface | OnTrimMemoryListener |
interface | SurfaceProducer |
interface | SurfaceTextureEntry |
interface | TextureEntry |
Public Member Functions | |
SurfaceProducer | createSurfaceProducer () |
SurfaceTextureEntry | createSurfaceTexture () |
SurfaceTextureEntry | registerSurfaceTexture (@NonNull SurfaceTexture surfaceTexture) |
ImageTextureEntry | createImageTexture () |
default void | onTrimMemory (int level) |
Registry of backend textures used with a single FlutterView
instance. Entries may be embedded into the Flutter view using the Texture widget.
Definition at line 20 of file TextureRegistry.java.
ImageTextureEntry io.flutter.view.TextureRegistry.createImageTexture | ( | ) |
Creates and registers a texture managed by the Flutter engine.
Implemented in io.flutter.embedding.engine.renderer.FlutterRenderer, and io.flutter.view.FlutterView.
SurfaceProducer io.flutter.view.TextureRegistry.createSurfaceProducer | ( | ) |
Creates and registers a SurfaceProducer texture managed by the Flutter engine.
Implemented in io.flutter.embedding.engine.renderer.FlutterRenderer, and io.flutter.view.FlutterView.
SurfaceTextureEntry io.flutter.view.TextureRegistry.createSurfaceTexture | ( | ) |
Creates and registers a SurfaceTexture managed by the Flutter engine.
Implemented in io.flutter.embedding.engine.renderer.FlutterRenderer, and io.flutter.view.FlutterView.
|
inline |
Callback invoked when memory is low.
Invoke this from android.app.Activity#onTrimMemory(int)
.
Implemented in io.flutter.embedding.engine.renderer.FlutterRenderer.
Definition at line 58 of file TextureRegistry.java.
SurfaceTextureEntry io.flutter.view.TextureRegistry.registerSurfaceTexture | ( | @NonNull SurfaceTexture | surfaceTexture | ) |
Registers a SurfaceTexture managed by the Flutter engine.
Implemented in io.flutter.view.FlutterView, and io.flutter.embedding.engine.renderer.FlutterRenderer.