Package 

Class LottieBlock


  • 
    public final class LottieBlock
    
                        

    Server-driven Lottie animation block.

    SPEC-070-A E.2 — replaces the stub placeholder with the real lottie-composeLottieAnimation Composable so onboarding / messages / surveys / paywalls can render the same Lottie URLs the console publishes today on iOS.

    iOS parity: packages/appdna-sdk-ios/Sources/AppDNASDK/Core/LottieBlockView.swift intends to use LottieView(animation: .init(url:)) from lottie-ios with playbackMode(.playing(.toProgress(1, loopMode: .loop))). This port matches that surface — loop flips between LottieConstants.IterateForever and a single play, speed is passed through, and clip-spec defaults to the full animation range.

    Recomposition safety: the underlying composition + animation state are scoped to this Composable instance via remember* helpers so Compose recycles them deterministically when the view leaves the composition (no manual DisposableEffect is required for Lottie — see SPEC-070-A E.4 note re: Rive/ExoPlayer needing explicit disposal).