Package 

Object RiveFileSource.RawRes.Companion

    • Method Summary

      Modifier and Type Method Description
      final RiveFileSource.RawRes from(@RawRes() Integer resId) Convenience function for Compose contexts to create a RawRes instance.
      • Methods inherited from class java.lang.Object

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

      • from

        @Composable() final RiveFileSource.RawRes from(@RawRes() Integer resId)

        Convenience function for Compose contexts to create a RawRes instance.

        Uses the current Compose LocalContext to obtain Resources, avoiding the need to pass it manually.

        Parameters:
        resId - The resource ID of the raw Rive file.