-
public final class LottieAnimationKt
-
-
Method Summary
Modifier and Type Method Description final static UnitLottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds, Boolean clipTextToBoundingBox, Map<String, Typeface> fontMap, AsyncUpdates asyncUpdates, Boolean safeMode)This is the base LottieAnimation composable. final static UnitLottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds, Boolean clipTextToBoundingBox, Map<String, Typeface> fontMap, AsyncUpdates asyncUpdates)This is the base LottieAnimation composable. final static UnitLottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds, Boolean clipTextToBoundingBox, Map<String, Typeface> fontMap)This is the base LottieAnimation composable. final static UnitLottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds, Boolean clipTextToBoundingBox)This is the base LottieAnimation composable. final static UnitLottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds)This is the base LottieAnimation composable. final static UnitLottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale)This is the base LottieAnimation composable. final static UnitLottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment)This is the base LottieAnimation composable. final static UnitLottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties)This is the base LottieAnimation composable. final static UnitLottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean maintainOriginalImageBounds)This is the base LottieAnimation composable. final static UnitLottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode)This is the base LottieAnimation composable. final static UnitLottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths)This is the base LottieAnimation composable. final static UnitLottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers)This is the base LottieAnimation composable. final static UnitLottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers)This is the base LottieAnimation composable. final static UnitLottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes)This is the base LottieAnimation composable. final static UnitLottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier)This is the base LottieAnimation composable. final static UnitLottieAnimation(LottieComposition composition, Function0<Float> progress)This is the base LottieAnimation composable. final static UnitLottieAnimation(LottieComposition composition, @FloatRange(from = 0.0.toDouble(), to = 1.0.toDouble()) Float progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds, Boolean safeMode, AsyncUpdates asyncUpdates)This is like LottieAnimation except that it takes a raw progress parameter instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean reverseOnRepeat, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds, Boolean clipTextToBoundingBox, Map<String, Typeface> fontMap, Boolean safeMode, AsyncUpdates asyncUpdates)This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean reverseOnRepeat, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds, Boolean clipTextToBoundingBox, Map<String, Typeface> fontMap, Boolean safeMode)This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean reverseOnRepeat, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds, Boolean clipTextToBoundingBox, Map<String, Typeface> fontMap)This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean reverseOnRepeat, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds, Boolean clipTextToBoundingBox)This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean reverseOnRepeat, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds)This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean reverseOnRepeat, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale)This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean reverseOnRepeat, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment)This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean reverseOnRepeat, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties)This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean reverseOnRepeat, Boolean maintainOriginalImageBounds)This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean reverseOnRepeat)This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode)This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths)This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers)This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers)This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes)This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations)This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed)This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec)This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay)This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying)This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition, Modifier modifier)This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition)This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider. final static UnitLottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds, Boolean clipTextToBoundingBox, Map<String, Typeface> fontMap, AsyncUpdates asyncUpdates, Boolean safeMode)This is a fallback method for binary compatibility with < 6.6.0 releases. -
-
Method Detail
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds, Boolean clipTextToBoundingBox, Map<String, Typeface> fontMap, AsyncUpdates asyncUpdates, Boolean safeMode)
This is the base LottieAnimation composable. It takes a composition and renders it at a specific progress.
The overloaded version of LottieAnimation that handles playback and is sufficient for most use cases.
- Parameters:
composition- The composition that will be rendered.progress- A provider for the progress (between 0 and 1) that should be rendered.outlineMasksAndMattes- Enable this to debug slow animations by outlining masks and mattes.applyOpacityToLayers- Sets whether to apply opacity to the each layer instead of shape.enableMergePaths- Enables experimental merge paths support.renderMode- Allows you to specify whether you want Lottie to use hardware or software rendering.maintainOriginalImageBounds- When true, dynamically set bitmaps will be drawn with the exact bounds of the original animation, regardless of the bitmap size.dynamicProperties- Allows you to change the properties of an animation dynamically.alignment- Define where the animation should be placed within this composable if it has a different size than this composable.contentScale- Define how the animation should be scaled if it has a different size than this Composable.clipToCompositionBounds- Determines whether or not Lottie will clip the animation to the original animation composition bounds.clipTextToBoundingBox- When true, if there is a bounding box set on a text layer (paragraph text), any text that overflows past its height will not be drawn.fontMap- A map of keys to Typefaces.asyncUpdates- When set to true, some parts of animation updates will be done off of the main thread.safeMode- If set to true, draw will be wrapped with a try/catch which will cause Lottie to render an empty frame rather than crash your app.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds, Boolean clipTextToBoundingBox, Map<String, Typeface> fontMap, AsyncUpdates asyncUpdates)
This is the base LottieAnimation composable. It takes a composition and renders it at a specific progress.
The overloaded version of LottieAnimation that handles playback and is sufficient for most use cases.
- Parameters:
composition- The composition that will be rendered.progress- A provider for the progress (between 0 and 1) that should be rendered.outlineMasksAndMattes- Enable this to debug slow animations by outlining masks and mattes.applyOpacityToLayers- Sets whether to apply opacity to the each layer instead of shape.enableMergePaths- Enables experimental merge paths support.renderMode- Allows you to specify whether you want Lottie to use hardware or software rendering.maintainOriginalImageBounds- When true, dynamically set bitmaps will be drawn with the exact bounds of the original animation, regardless of the bitmap size.dynamicProperties- Allows you to change the properties of an animation dynamically.alignment- Define where the animation should be placed within this composable if it has a different size than this composable.contentScale- Define how the animation should be scaled if it has a different size than this Composable.clipToCompositionBounds- Determines whether or not Lottie will clip the animation to the original animation composition bounds.clipTextToBoundingBox- When true, if there is a bounding box set on a text layer (paragraph text), any text that overflows past its height will not be drawn.fontMap- A map of keys to Typefaces.asyncUpdates- When set to true, some parts of animation updates will be done off of the main thread.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds, Boolean clipTextToBoundingBox, Map<String, Typeface> fontMap)
This is the base LottieAnimation composable. It takes a composition and renders it at a specific progress.
The overloaded version of LottieAnimation that handles playback and is sufficient for most use cases.
- Parameters:
composition- The composition that will be rendered.progress- A provider for the progress (between 0 and 1) that should be rendered.outlineMasksAndMattes- Enable this to debug slow animations by outlining masks and mattes.applyOpacityToLayers- Sets whether to apply opacity to the each layer instead of shape.enableMergePaths- Enables experimental merge paths support.renderMode- Allows you to specify whether you want Lottie to use hardware or software rendering.maintainOriginalImageBounds- When true, dynamically set bitmaps will be drawn with the exact bounds of the original animation, regardless of the bitmap size.dynamicProperties- Allows you to change the properties of an animation dynamically.alignment- Define where the animation should be placed within this composable if it has a different size than this composable.contentScale- Define how the animation should be scaled if it has a different size than this Composable.clipToCompositionBounds- Determines whether or not Lottie will clip the animation to the original animation composition bounds.clipTextToBoundingBox- When true, if there is a bounding box set on a text layer (paragraph text), any text that overflows past its height will not be drawn.fontMap- A map of keys to Typefaces.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds, Boolean clipTextToBoundingBox)
This is the base LottieAnimation composable. It takes a composition and renders it at a specific progress.
The overloaded version of LottieAnimation that handles playback and is sufficient for most use cases.
- Parameters:
composition- The composition that will be rendered.progress- A provider for the progress (between 0 and 1) that should be rendered.outlineMasksAndMattes- Enable this to debug slow animations by outlining masks and mattes.applyOpacityToLayers- Sets whether to apply opacity to the each layer instead of shape.enableMergePaths- Enables experimental merge paths support.renderMode- Allows you to specify whether you want Lottie to use hardware or software rendering.maintainOriginalImageBounds- When true, dynamically set bitmaps will be drawn with the exact bounds of the original animation, regardless of the bitmap size.dynamicProperties- Allows you to change the properties of an animation dynamically.alignment- Define where the animation should be placed within this composable if it has a different size than this composable.contentScale- Define how the animation should be scaled if it has a different size than this Composable.clipToCompositionBounds- Determines whether or not Lottie will clip the animation to the original animation composition bounds.clipTextToBoundingBox- When true, if there is a bounding box set on a text layer (paragraph text), any text that overflows past its height will not be drawn.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds)
This is the base LottieAnimation composable. It takes a composition and renders it at a specific progress.
The overloaded version of LottieAnimation that handles playback and is sufficient for most use cases.
- Parameters:
composition- The composition that will be rendered.progress- A provider for the progress (between 0 and 1) that should be rendered.outlineMasksAndMattes- Enable this to debug slow animations by outlining masks and mattes.applyOpacityToLayers- Sets whether to apply opacity to the each layer instead of shape.enableMergePaths- Enables experimental merge paths support.renderMode- Allows you to specify whether you want Lottie to use hardware or software rendering.maintainOriginalImageBounds- When true, dynamically set bitmaps will be drawn with the exact bounds of the original animation, regardless of the bitmap size.dynamicProperties- Allows you to change the properties of an animation dynamically.alignment- Define where the animation should be placed within this composable if it has a different size than this composable.contentScale- Define how the animation should be scaled if it has a different size than this Composable.clipToCompositionBounds- Determines whether or not Lottie will clip the animation to the original animation composition bounds.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale)
This is the base LottieAnimation composable. It takes a composition and renders it at a specific progress.
The overloaded version of LottieAnimation that handles playback and is sufficient for most use cases.
- Parameters:
composition- The composition that will be rendered.progress- A provider for the progress (between 0 and 1) that should be rendered.outlineMasksAndMattes- Enable this to debug slow animations by outlining masks and mattes.applyOpacityToLayers- Sets whether to apply opacity to the each layer instead of shape.enableMergePaths- Enables experimental merge paths support.renderMode- Allows you to specify whether you want Lottie to use hardware or software rendering.maintainOriginalImageBounds- When true, dynamically set bitmaps will be drawn with the exact bounds of the original animation, regardless of the bitmap size.dynamicProperties- Allows you to change the properties of an animation dynamically.alignment- Define where the animation should be placed within this composable if it has a different size than this composable.contentScale- Define how the animation should be scaled if it has a different size than this Composable.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment)
This is the base LottieAnimation composable. It takes a composition and renders it at a specific progress.
The overloaded version of LottieAnimation that handles playback and is sufficient for most use cases.
- Parameters:
composition- The composition that will be rendered.progress- A provider for the progress (between 0 and 1) that should be rendered.outlineMasksAndMattes- Enable this to debug slow animations by outlining masks and mattes.applyOpacityToLayers- Sets whether to apply opacity to the each layer instead of shape.enableMergePaths- Enables experimental merge paths support.renderMode- Allows you to specify whether you want Lottie to use hardware or software rendering.maintainOriginalImageBounds- When true, dynamically set bitmaps will be drawn with the exact bounds of the original animation, regardless of the bitmap size.dynamicProperties- Allows you to change the properties of an animation dynamically.alignment- Define where the animation should be placed within this composable if it has a different size than this composable.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties)
This is the base LottieAnimation composable. It takes a composition and renders it at a specific progress.
The overloaded version of LottieAnimation that handles playback and is sufficient for most use cases.
- Parameters:
composition- The composition that will be rendered.progress- A provider for the progress (between 0 and 1) that should be rendered.outlineMasksAndMattes- Enable this to debug slow animations by outlining masks and mattes.applyOpacityToLayers- Sets whether to apply opacity to the each layer instead of shape.enableMergePaths- Enables experimental merge paths support.renderMode- Allows you to specify whether you want Lottie to use hardware or software rendering.maintainOriginalImageBounds- When true, dynamically set bitmaps will be drawn with the exact bounds of the original animation, regardless of the bitmap size.dynamicProperties- Allows you to change the properties of an animation dynamically.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean maintainOriginalImageBounds)
This is the base LottieAnimation composable. It takes a composition and renders it at a specific progress.
The overloaded version of LottieAnimation that handles playback and is sufficient for most use cases.
- Parameters:
composition- The composition that will be rendered.progress- A provider for the progress (between 0 and 1) that should be rendered.outlineMasksAndMattes- Enable this to debug slow animations by outlining masks and mattes.applyOpacityToLayers- Sets whether to apply opacity to the each layer instead of shape.enableMergePaths- Enables experimental merge paths support.renderMode- Allows you to specify whether you want Lottie to use hardware or software rendering.maintainOriginalImageBounds- When true, dynamically set bitmaps will be drawn with the exact bounds of the original animation, regardless of the bitmap size.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode)
This is the base LottieAnimation composable. It takes a composition and renders it at a specific progress.
The overloaded version of LottieAnimation that handles playback and is sufficient for most use cases.
- Parameters:
composition- The composition that will be rendered.progress- A provider for the progress (between 0 and 1) that should be rendered.outlineMasksAndMattes- Enable this to debug slow animations by outlining masks and mattes.applyOpacityToLayers- Sets whether to apply opacity to the each layer instead of shape.enableMergePaths- Enables experimental merge paths support.renderMode- Allows you to specify whether you want Lottie to use hardware or software rendering.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths)
This is the base LottieAnimation composable. It takes a composition and renders it at a specific progress.
The overloaded version of LottieAnimation that handles playback and is sufficient for most use cases.
- Parameters:
composition- The composition that will be rendered.progress- A provider for the progress (between 0 and 1) that should be rendered.outlineMasksAndMattes- Enable this to debug slow animations by outlining masks and mattes.applyOpacityToLayers- Sets whether to apply opacity to the each layer instead of shape.enableMergePaths- Enables experimental merge paths support.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers)
This is the base LottieAnimation composable. It takes a composition and renders it at a specific progress.
The overloaded version of LottieAnimation that handles playback and is sufficient for most use cases.
- Parameters:
composition- The composition that will be rendered.progress- A provider for the progress (between 0 and 1) that should be rendered.outlineMasksAndMattes- Enable this to debug slow animations by outlining masks and mattes.applyOpacityToLayers- Sets whether to apply opacity to the each layer instead of shape.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers)
This is the base LottieAnimation composable. It takes a composition and renders it at a specific progress.
The overloaded version of LottieAnimation that handles playback and is sufficient for most use cases.
- Parameters:
composition- The composition that will be rendered.progress- A provider for the progress (between 0 and 1) that should be rendered.outlineMasksAndMattes- Enable this to debug slow animations by outlining masks and mattes.applyOpacityToLayers- Sets whether to apply opacity to the each layer instead of shape.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes)
This is the base LottieAnimation composable. It takes a composition and renders it at a specific progress.
The overloaded version of LottieAnimation that handles playback and is sufficient for most use cases.
- Parameters:
composition- The composition that will be rendered.progress- A provider for the progress (between 0 and 1) that should be rendered.outlineMasksAndMattes- Enable this to debug slow animations by outlining masks and mattes.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier)
This is the base LottieAnimation composable. It takes a composition and renders it at a specific progress.
The overloaded version of LottieAnimation that handles playback and is sufficient for most use cases.
- Parameters:
composition- The composition that will be rendered.progress- A provider for the progress (between 0 and 1) that should be rendered.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Function0<Float> progress)
This is the base LottieAnimation composable. It takes a composition and renders it at a specific progress.
The overloaded version of LottieAnimation that handles playback and is sufficient for most use cases.
- Parameters:
composition- The composition that will be rendered.progress- A provider for the progress (between 0 and 1) that should be rendered.
-
LottieAnimation
@Composable()@Deprecated(message = Pass progress as a lambda instead of a float. This overload will be removed in the next release.) final static Unit LottieAnimation(LottieComposition composition, @FloatRange(from = 0.0.toDouble(), to = 1.0.toDouble()) Float progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds, Boolean safeMode, AsyncUpdates asyncUpdates)
This is like LottieAnimation except that it takes a raw progress parameter instead of taking a progress provider.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean reverseOnRepeat, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds, Boolean clipTextToBoundingBox, Map<String, Typeface> fontMap, Boolean safeMode, AsyncUpdates asyncUpdates)
This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean reverseOnRepeat, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds, Boolean clipTextToBoundingBox, Map<String, Typeface> fontMap, Boolean safeMode)
This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean reverseOnRepeat, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds, Boolean clipTextToBoundingBox, Map<String, Typeface> fontMap)
This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean reverseOnRepeat, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds, Boolean clipTextToBoundingBox)
This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean reverseOnRepeat, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds)
This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean reverseOnRepeat, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale)
This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean reverseOnRepeat, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment)
This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean reverseOnRepeat, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties)
This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean reverseOnRepeat, Boolean maintainOriginalImageBounds)
This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean reverseOnRepeat)
This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths, RenderMode renderMode)
This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers, Boolean enableMergePaths)
This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean applyShadowToLayers)
This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers)
This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations, Boolean outlineMasksAndMattes)
This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed, Integer iterations)
This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec, Float speed)
This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay, LottieClipSpec clipSpec)
This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying, Boolean restartOnPlay)
This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Modifier modifier, Boolean isPlaying)
This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition, Modifier modifier)
This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider.
-
LottieAnimation
@Composable()@JvmOverloads() final static Unit LottieAnimation(LottieComposition composition)
This is like LottieAnimation except that it handles driving the animation via animateLottieCompositionAsState instead of taking a progress provider.
-
LottieAnimation
@Composable()@Deprecated(message = This is here for binary compatibility. It'll be removed after the next major release, level = DeprecationLevel.HIDDEN) final static Unit LottieAnimation(LottieComposition composition, Function0<Float> progress, Modifier modifier, Boolean outlineMasksAndMattes, Boolean applyOpacityToLayers, Boolean enableMergePaths, RenderMode renderMode, Boolean maintainOriginalImageBounds, LottieDynamicProperties dynamicProperties, Alignment alignment, ContentScale contentScale, Boolean clipToCompositionBounds, Boolean clipTextToBoundingBox, Map<String, Typeface> fontMap, AsyncUpdates asyncUpdates, Boolean safeMode)
This is a fallback method for binary compatibility with < 6.6.0 releases.
-
-
-
-