1 package com.airbnb.lottie.compose 2 3 /** 4 * Determines how the animation should behave if the calling CoroutineScope is cancelled. 5 * 6 * @see rememberLottieAnimatable 7 */ 8 enum class LottieCancellationBehavior { 9 /** 10 * Stop animation immediately and return early. 11 */ 12 Immediately, 13 14 /** 15 * Delay cancellations until the current iteration has fully completed. 16 * This can be useful in state based transitions where you want one animation to finish its 17 * animation before continuing to the next. 18 */ 19 OnIterationFinish, 20 }