Skip to content

Commit

Permalink
Add @jvmoverloads to LottieAnimatable (airbnb#2320)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpeal authored Jun 19, 2023
1 parent 669ddb2 commit f794837
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ import kotlin.math.roundToInt
* For more details, refer to the docs of [AsyncUpdates].
*/
@Composable
@JvmOverloads
fun LottieAnimation(
composition: LottieComposition?,
progress: () -> Float,
Expand Down Expand Up @@ -177,6 +178,7 @@ fun LottieAnimation(
* @see animateLottieCompositionAsState
*/
@Composable
@JvmOverloads
fun LottieAnimation(
composition: LottieComposition?,
modifier: Modifier = Modifier,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ private const val DefaultCacheKey = "__LottieInternalDefaultCacheKey__"
* retrying again. [rememberLottieRetrySignal] can be used to handle explicit retires.
*/
@Composable
@JvmOverloads
fun rememberLottieComposition(
spec: LottieCompositionSpec,
imageAssetsFolder: String? = null,
Expand Down

0 comments on commit f794837

Please sign in to comment.