-
public final class LottieBlockServer-driven Lottie animation block.
SPEC-070-A E.2 — replaces the stub placeholder with the real
lottie-composeLottieAnimationComposable 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.swiftintends to useLottieView(animation: .init(url:))fromlottie-ioswithplaybackMode(.playing(.toProgress(1, loopMode: .loop))). This port matches that surface —loopflips between LottieConstants.IterateForever and a single play,speedis 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 manualDisposableEffectis required for Lottie — see SPEC-070-A E.4 note re: Rive/ExoPlayer needing explicit disposal).
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringlottie_urlprivate final Map<String, Object>lottie_jsonprivate final Booleanautoplayprivate final Booleanloopprivate final Floatspeedprivate final Floatwidthprivate final Floatheightprivate final Stringalignmentprivate final Booleanplay_on_scrollprivate final Booleanplay_on_tapprivate final Map<String, String>color_overrides
-
Method Summary
Modifier and Type Method Description final StringgetLottie_url()final Map<String, Object>getLottie_json()final BooleangetAutoplay()final BooleangetLoop()final FloatgetSpeed()final FloatgetWidth()final FloatgetHeight()final StringgetAlignment()final BooleangetPlay_on_scroll()final BooleangetPlay_on_tap()final Map<String, String>getColor_overrides()-
-
Method Detail
-
getLottie_url
final String getLottie_url()
-
getLottie_json
final Map<String, Object> getLottie_json()
-
getAutoplay
final Boolean getAutoplay()
-
getAlignment
final String getAlignment()
-
getPlay_on_scroll
final Boolean getPlay_on_scroll()
-
getPlay_on_tap
final Boolean getPlay_on_tap()
-
getColor_overrides
final Map<String, String> getColor_overrides()
-
-
-
-