ImageReaderSurface

CloseableSurface backed by an ImageReader.

The Surface is owned by the ImageReader, so closing this wrapper closes only the reader. That invalidates the surface after Rive has finished all queued work that targets it.

Parameters

imageReader

Reader that owns the render target surface.

Constructors

Link copied to clipboard
constructor(imageReader: ImageReader)

Properties

Link copied to clipboard
open override val height: Int

Creation-time height in physical pixels.

Link copied to clipboard
open override val resizable: Boolean = false

Whether the backing Android resource supports in-place size changes.

Link copied to clipboard
open override val surface: Surface

Surface used to create the backend render target.

Link copied to clipboard
open override val width: Int

Creation-time width in physical pixels.

Functions

Link copied to clipboard
open override fun close()

Releases the Android resources backing surface.