Interface TextureRegistry

  • All Known Implementing Classes:
    FlutterRenderer, FlutterView

    public interface TextureRegistry
    Registry of backend textures used with a single FlutterView instance. Entries may be embedded into the Flutter view using the Texture widget.
    • Method Detail

      • createSurfaceTexture

        TextureRegistry.SurfaceTextureEntry createSurfaceTexture()
        Creates and registers a SurfaceTexture managed by the Flutter engine.
        A SurfaceTextureEntry.
      • createImageTexture

        TextureRegistry.ImageTextureEntry createImageTexture()
        Creates and registers a texture managed by the Flutter engine.
        a ImageTextureEntry.
      • onTrimMemory

        default void onTrimMemory​(int level)
        Callback invoked when memory is low.

        Invoke this from Activity.onTrimMemory(int).