Rive File Controller
Constructors
Types
Properties
The scale factor to use for Fit.LAYOUT. If null, it will use a density determined by Rive (automatic). See RiveFileController.layoutScaleFactorAutomatic for more details.
The automatic scale factor set by Rive. This value will only be used if layoutScaleFactor is not set (null).
The number of objects referencing this controller.
Functions
Adds a RiveEventListener to get notified on RiveEvents.
Note: This is happening in the render thread: this function is synchronized with a ReentrantLock stored on the File because this is a critical section with the UI thread. When advancing or performing operations around an animations data structure, be conscious of thread safety.
Get the current value for a text run named textRunName on the active artboard if it exists.
Get the text value for a text run named textRunName on the nested artboard represented at path.
Restarts paused animations if there are any. Otherwise, it starts playing the first animation (timeline or state machine) in the Artboard.
Removes the listener.
Restore a copy of the state to this Controller.
Get a copy of the state of this controller and acquire a reference to the file to prevent it being released from memory.
Instances the artboard with the specified name. If none is provided, it instantiates the first (i.e. default) artboard. If this controller is set to autoplay it will also start playing.
Assigns the file to this Controller and instances the artboard provided via artboardName. If none is provided, it instantiates the first (i.e. default) artboard. If this controller is set to autoplay it will also start playing.
Set the text value for a text run named textRunName to textValue on the active artboard.
Set the text value for a text run named textRunName to textValue on the nested artboard represented at path.
Named stopAnimations to avoid conflicting with stop.