LottieAnimationRequest
Wrapper class of the LottieAnimationView class methods to offer basic functionality.
See also
Types
Functions
Sets the animation from a file in the raw directory. This will load and deserialize the file asynchronously.
Sets the animation from the name of a file in the raw directory. This will load and deserialize the file asynchronously.
Sets the animation from an arbitrary InputStream. This will load and deserialize the file asynchronously.
Sets the animation from json string. This is the ideal API to use when loading an animation over the network because you can use the raw response body here and a conversion to a JSONObject never has to be done.
Load a lottie animation from a url. The url can be a json file or a zip file. Use a zip file if you have images. Simply zip them together and lottie will unzip and link the images automatically.
Set a drawable that will be rendered if the LottieComposition fails to load for any reason. Unless you are using {@link #setAnimationFromUrl(String)}, this is an unexpected error and you should handle it with {@link #setFailureListener(LottieListener)}.
Sets the maximum frame that the animation will end at when playing or looping.
Sets the maximum frame to the start time + duration of the specified marker.
Sets the maximum progress that the animation will end at when playing or looping.
Sets the minimum and maximum frame to the start time and start time + duration of the specified marker.
Sets the minimum frame that the animation will start from when playing or looping.
Sets the minimum frame to the start time of the specified marker.
Sets the minimum progress that the animation will start from when playing or looping.
Sets how many times the animation should be repeated. If the repeat count is 0, the animation is never repeated. If the repeat count is greater than 0 or INFINITE, the repeat mode will be taken into account. The repeat count is 0 by default.