Package-level declarations
Types
Represents the outcome of advancing a LinearAnimationInstance.
AnimationStates are a base class for state machine layer states.
AnyStates are a base class for state machine layer states.
Artboards as designed in the Rive animation editor.
A thin Kotlin wrapper for the underlying C++ audio asset. Helpful to distinguish between various FileAsset subclasses.
A BindableArtboard is an artboard reference that can be assigned to a ViewModelArtboardProperty. It should only be used for that purpose and cannot be used as a regular Artboard.
BlendStates are a base class for state machine layer states.
Loads assets from Rive's CDN when marked as "Hosted" in the Rive editor. Uses the FileAsset.cdnUrl field as the URL.
A FileAssetLoader with access to a Context. Use this if you need context when the asset loader is constructed via reflection in XML.
EntryStates are a base class for state machine layer states.
ExitStates are a base class for state machine layer states.
The default asset loader used by RiveAnimationView when loading assets. This allows for setting up cascading asset loaders which may be useful when each represents a different source or policy, e.g. a memory cache, local storage, and network.
Files are created in the Rive editor.
Base class for asset loading. Overload loadContents to customize the loading process.
A thin Kotlin wrapper for the underlying C++ image asset. Helpful to distinguish between various FileAsset subclasses.
LayerStates are a base class for state machine layer states.
The LinearAnimationInstance is a helper to wrap common operations to play an animation.
NativeObject is a Kotlin object that's backed by a C++ counterpart via the JNI. It keeps track of the current pointer value in its local variable unsafeCppPointer.
A wrapper around a native C++ object representing an audio clip that can be played in Rive.
A class for Rive events.
A class for reported Rive events to match its C++ counterpart.
A wrapper around a native C++ object representing a font that can be rendered in Rive.
A general Rive event.
An open URL Rive event.
A wrapper around a native C++ object representing a raster image that can be rendered in Rive.
A class for text run instances.
A boolean state machine input.
SMIInputs are a base class for state machine input instances.
A trigger state machines input.
The StateMachineInstance is a helper to wrap common operations to play a state machine.
A description of a ViewModel in the Rive file. It can be used to retrieve property definitions at runtime. However, properties cannot be modified - that requires an instance. Use one of the createInstance methods to create an instance with mutable properties from this ViewModel.
An artboard property of a ViewModelInstance.
A color property of a ViewModelInstance. Values are represented as integers in 0xAARRGGBB format.
An enum property of a ViewModelInstance. Values are represented as strings.
An image property of a ViewModelInstance. Values are RiveRenderImage type, and must be constructed from encoded bytes with RiveRenderImage.make.
Represents an instantiated set of properties on a ViewModel. With this class you have access to the individual properties to get and set values from bindings.
A list property of ViewModelInstances.
A number property of a ViewModelInstance. Use value to mutate the property.
A property of type T of a ViewModelInstance. Use value to mutate the property. use valueFlow to subscribe to changes on the value.
A trigger property of a ViewModelInstance. Use trigger fire the trigger.