LottieScreen
Renders a Lottie animation as an image in an offscreen video composition.
Load an animation with setAnimation or setAnimationFromJson, add this object to a screen, and call playAnimation. Animations repeat indefinitely by default.
Parameters
The screen object identifier, or null to generate one.
Properties
The update mode forwarded to the Lottie drawable.
Reads the drawable's text clipping setting.
Whether rendering is clipped to the composition bounds.
Whether merge paths are enabled in the Lottie drawable.
The asset folder used by the drawable to resolve animation images.
Whether the underlying Lottie drawable is currently animating.
Whether opacity is applied to layers by the Lottie drawable.
Whether the drawable preserves the original bounds of image assets.
The repeat count forwarded to the drawable; defaults to LottieDrawable.INFINITE.
Functions
Cancels animation playback through the Lottie drawable.
Pauses animation playback through the Lottie drawable.
Starts the Lottie animation and invalidates the screen layout.
Loads an animation from an Android raw resource.
Loads an animation from the application assets using the supplied asset name.
Loads a JSON animation from an input stream.
Loads an animation and its assets from a ZIP stream.
Loads an animation from a JSON string.
Loads an animation from a URL using the Lottie composition loader.
Sets the font-name-to-typeface mapping used by the Lottie drawable.
Sets the delegate used by the Lottie drawable to resolve image assets.
Sets the underlying Lottie drawable's safe mode flag.