Flutter Engine
The Flutter Engine
Classes | Public Member Functions | List of all members
io.flutter.view.TextureRegistry Interface Reference
Inheritance diagram for io.flutter.view.TextureRegistry:
io.flutter.embedding.engine.renderer.FlutterRenderer io.flutter.view.FlutterView

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)
 

Detailed Description

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.

Member Function Documentation

◆ createImageTexture()

ImageTextureEntry io.flutter.view.TextureRegistry.createImageTexture ( )

Creates and registers a texture managed by the Flutter engine.

Returns
a ImageTextureEntry.

Implemented in io.flutter.embedding.engine.renderer.FlutterRenderer, and io.flutter.view.FlutterView.

◆ createSurfaceProducer()

SurfaceProducer io.flutter.view.TextureRegistry.createSurfaceProducer ( )

Creates and registers a SurfaceProducer texture managed by the Flutter engine.

Returns
A SurfaceProducer.

Implemented in io.flutter.embedding.engine.renderer.FlutterRenderer, and io.flutter.view.FlutterView.

◆ createSurfaceTexture()

SurfaceTextureEntry io.flutter.view.TextureRegistry.createSurfaceTexture ( )

Creates and registers a SurfaceTexture managed by the Flutter engine.

Returns
A SurfaceTextureEntry.

Implemented in io.flutter.embedding.engine.renderer.FlutterRenderer, and io.flutter.view.FlutterView.

◆ onTrimMemory()

default void io.flutter.view.TextureRegistry.onTrimMemory ( int  level)
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.

58{}

◆ registerSurfaceTexture()

SurfaceTextureEntry io.flutter.view.TextureRegistry.registerSurfaceTexture ( @NonNull SurfaceTexture  surfaceTexture)

Registers a SurfaceTexture managed by the Flutter engine.

Returns
A SurfaceTextureEntry.

Implemented in io.flutter.view.FlutterView, and io.flutter.embedding.engine.renderer.FlutterRenderer.


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