setRiveFile

fun setRiveFile(file: File, artboardName: String? = null)

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.