-
@Deprecated() public class LottieComposition.Factory
This will be removed in the next version of Lottie. LottieCompositionFactory has improvedAPI names, failure handlers, and will return in-progress tasks so you will never parse the sameanimation twice in parallel.
-
-
Method Summary
Modifier and Type Method Description static CancellablefromAssetFileName(Context context, String fileName, OnCompositionLoadedListener l)static CancellablefromRawFile(Context context, @RawRes() int resId, OnCompositionLoadedListener l)static CancellablefromInputStream(InputStream stream, OnCompositionLoadedListener l)static CancellablefromJsonString(String jsonString, OnCompositionLoadedListener l)static CancellablefromJsonReader(JsonReader reader, OnCompositionLoadedListener l)static LottieCompositionfromFileSync(Context context, String fileName)static LottieCompositionfromInputStreamSync(InputStream stream)static LottieCompositionfromInputStreamSync(InputStream stream, boolean close)This will now auto-close the input stream! static LottieCompositionfromJsonSync(Resources res, JSONObject json)static LottieCompositionfromJsonSync(String json)static LottieCompositionfromJsonSync(JsonReader reader)-
-
Method Detail
-
fromAssetFileName
@Deprecated() static Cancellable fromAssetFileName(Context context, String fileName, OnCompositionLoadedListener l)
-
fromRawFile
@Deprecated() static Cancellable fromRawFile(Context context, @RawRes() int resId, OnCompositionLoadedListener l)
-
fromInputStream
@Deprecated() static Cancellable fromInputStream(InputStream stream, OnCompositionLoadedListener l)
-
fromJsonString
@Deprecated() static Cancellable fromJsonString(String jsonString, OnCompositionLoadedListener l)
-
fromJsonReader
@Deprecated() static Cancellable fromJsonReader(JsonReader reader, OnCompositionLoadedListener l)
-
fromFileSync
@Nullable()@WorkerThread()@Deprecated() static LottieComposition fromFileSync(Context context, String fileName)
-
fromInputStreamSync
@Nullable()@WorkerThread()@Deprecated() static LottieComposition fromInputStreamSync(InputStream stream)
-
fromInputStreamSync
@Nullable()@WorkerThread()@Deprecated() static LottieComposition fromInputStreamSync(InputStream stream, boolean close)
This will now auto-close the input stream!
-
fromJsonSync
@Nullable()@WorkerThread()@Deprecated() static LottieComposition fromJsonSync(Resources res, JSONObject json)
-
fromJsonSync
@Nullable()@WorkerThread()@Deprecated() static LottieComposition fromJsonSync(String json)
-
fromJsonSync
@Nullable()@WorkerThread()@Deprecated() static LottieComposition fromJsonSync(JsonReader reader)
-
-
-
-