set Rive Bytes
fun setRiveBytes(bytes: ByteArray, artboardName: String? = null, animationName: String? = null, stateMachineName: String? = null, autoplay: Boolean = controller.autoplay, autoBind: Boolean = false, fit: Fit = Fit.fromIndex(fitIndexDefault), alignment: Alignment = Alignment.fromIndex(alignmentIndexDefault), loop: Loop = Loop.fromIndex(loopIndexDefault))
Create a Rive file from a byte array and load it into the view.
Parameters
bytes
The byte array to load as a Rive file.
See also
Throws
if artboardName or animationName are set and do not exist in the file.