Does anyone know, how to listen for lottie animati...
# compose
p
Does anyone know, how to listen for lottie animation completed? Thanks!
Trying this now, but not sure if it's correct approach
Copy code
val spec = LottieCompositionSpec.RawRes(R.raw.complete)
val compositionResult = rememberLottieComposition(spec)
val composition by compositionResult
LottieAnimation(composition = composition)
if (compositionResult.isComplete) {
    // do smth??
}
h
I have the same problem, how did you solve it? Can you please share the solution @Peter Mandeljc
p
never actually got around to properly solve it, still using suspending delay() and running some code after it
h
got it, thanks for the reply
410 Views