Package io.flutter.view
Interface TextureRegistry.SurfaceTextureEntry
-
- Enclosing interface:
- TextureRegistry
public static interface TextureRegistry.SurfaceTextureEntryA registry entry for a managed SurfaceTexture.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description longid()voidrelease()Deregisters and releases this SurfaceTexture.default voidsetOnFrameConsumedListener(TextureRegistry.OnFrameConsumedListener listener)Set a listener that will be notified when the most recent image has been consumed.default voidsetOnTrimMemoryListener(TextureRegistry.OnTrimMemoryListener listener)Set a listener that will be notified when a memory pressure warning was forward.SurfaceTexturesurfaceTexture()
-
-
-
Method Detail
-
surfaceTexture
@NonNull SurfaceTexture surfaceTexture()
- Returns:
- The managed SurfaceTexture.
-
id
long id()
- Returns:
- The identity of this SurfaceTexture.
-
release
void release()
Deregisters and releases this SurfaceTexture.
-
setOnFrameConsumedListener
default void setOnFrameConsumedListener(@Nullable TextureRegistry.OnFrameConsumedListener listener)Set a listener that will be notified when the most recent image has been consumed.
-
setOnTrimMemoryListener
default void setOnTrimMemoryListener(@Nullable TextureRegistry.OnTrimMemoryListener listener)Set a listener that will be notified when a memory pressure warning was forward.
-
-