Package 

Class ArtboardKt

    • Method Summary

      Modifier and Type Method Description
      final static Artboard rememberArtboard(RiveFile file, String artboardName) Creates an Artboard from the given RiveFile.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • rememberArtboard

        @Composable() final static Artboard rememberArtboard(RiveFile file, String artboardName)

        Creates an Artboard from the given RiveFile.

        The lifetime of the Artboard is managed by this composable. It will release the resources allocated to the artboard when it falls out of scope.

        Parameters:
        file - The RiveFile to instantiate the artboard from.
        artboardName - The name of the artboard to load.