Package 

Class RenderContext

  • All Implemented Interfaces:
    app.rive.core.CheckableAutoCloseable , java.lang.AutoCloseable

    
    public abstract class RenderContext
     implements CheckableAutoCloseable
                        

    A backend agnostic rendering context base class. Implementers contain the necessary state for Rive to render, both in Kotlin and with associated native objects.

    Meant for use with a single CommandQueue.

    ⚠️ As it contains native resources, it implements CheckableAutoCloseable and should be closed when no longer needed, unless it is passed to a CommandQueue, in which case it assumes ownership of this object and will close it when it is disposed.