Package-level declarations
Types
A handle to an artboard instance on the CommandServer. Created with CommandQueue.createDefaultArtboard or CommandQueue.createArtboardByName and deleted with CommandQueue.deleteArtboard.
Provides control over the Rive audio engine (powered by https://miniaud.io/).
A handle to a AudioSource on the CommandServer. Created with CommandQueue.decodeAudio and deleted with CommandQueue.deleteAudio.
An AutoCloseable that can report whether it has been closed.
An owned Android Surface paired with the Android resource that backs it. Used only to create a RiveSurface with CommandQueue.createRiveSurface, which takes ownership, while also encoding resource cleanup.
Utility to make CheckableAutoCloseable idempotent.
A CommandQueue is the worker that runs Rive in a thread. It holds all of the state, including assets (images, audio, and fonts), Rive files, artboards, state machines, and view model instances.
Abstraction of calls to the native command queue.
A key used to uniquely identify a draw operation in the CommandQueue. This is useful when the same CommandQueue issues multiple draw calls. If the same key is used before the render loop flushes the queue, the previous draw call will be replaced with the new one.
A handle to a Rive file on the CommandServer. Created with CommandQueue.loadFile and deleted with CommandQueue.deleteFile.
A handle to a Font on the CommandServer. Created with CommandQueue.decodeFont and deleted with CommandQueue.deleteFont.
A way of getting frame callbacks every vsync.
A handle to a RenderImage on the CommandServer. Created with CommandQueue.decodeImage and deleted with CommandQueue.deleteImage.
CloseableSurface backed by an ImageReader.
Holds the native pointers to the listeners used by the CommandQueue. Android uses only one listener of each type to simplify lifetime management. This is as opposed to a listener for each handle.
An interface for reference-counted objects. Can be used with RCPointer by delegation.
Additional alias for the interior type RiveWorker.PropertyUpdate due to not being accessible from RiveWorker.
A backend agnostic collection of surface properties needed for rendering.
CommandQueue is named to match the underlying core C++ class, which reflects its algorithm: a queue of commands that are dispatched to a command server which receives them and operates on Rive files.
A handle to a state machine instance on the CommandServer. Created with CommandQueue.createDefaultStateMachine or CommandQueue.createStateMachineByName and deleted with CommandQueue.deleteStateMachine.
CloseableSurface backed by a SurfaceTexture.
A unique pointer to a native C++ object.
A handle to a view model instance on the CommandServer. Created with CommandQueue.createViewModelInstance and deleted with CommandQueue.deleteViewModelInstance.
Properties
A FrameTicker that uses Choreographer to get frame callbacks.
A FrameTicker that uses withFrameNanos to get frame callbacks.
Functions
An API compatible version of withFrameNanos from Compose that uses Choreographer.