Package 

Class RiveSurface

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

    
    public abstract class RiveSurface
     implements CheckableAutoCloseable
                        

    A backend agnostic collection of surface properties needed for rendering.

    • A draw key, which uniquely identifies draw operations in the CommandQueue

    • The dimensions of the surface in pixels

    ⚠️ This class assumes ownership of all resources and should be closed when no longer needed. Closing schedules ordered disposal on the owning CommandQueue.

    Alone it is not sufficient for rendering, as it lacks a backend-specific surface, which is provided by subclasses.