Package com.airbnb.lottie.network
Interface LottieNetworkFetcher
-
- All Known Implementing Classes:
DefaultLottieNetworkFetcher
public interface LottieNetworkFetcherImplement this interface to handle network fetching manually when animations are requested via url. By default, Lottie will use anHttpURLConnectionunder the hood but this enables you to hook into your own network stack. By default, Lottie will also handle caching the animations but if you want to provide your own cache directory, you may implementLottieNetworkCacheProvider.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LottieFetchResultfetchSync(String url)
-
-
-
Method Detail
-
fetchSync
@WorkerThread @NonNull LottieFetchResult fetchSync(@NonNull String url) throws IOException
- Throws:
IOException
-
-