Interface LottieNetworkFetcher

  • All Known Implementing Classes:
    DefaultLottieNetworkFetcher

    public interface LottieNetworkFetcher
    Implement this interface to handle network fetching manually when animations are requested via url. By default, Lottie will use an HttpURLConnection under 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 implement LottieNetworkCacheProvider.
    See Also:
    Lottie.initialize(com.airbnb.lottie.LottieConfig)
    • Method Detail

      • fetchSync

        @WorkerThread
        @NonNull
        LottieFetchResult fetchSync​(@NonNull
                                    java.lang.String url)
                             throws java.io.IOException
        Throws:
        java.io.IOException