• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.airbnb.lottie.network;
2 
3 import androidx.annotation.NonNull;
4 import androidx.annotation.Nullable;
5 
6 import java.io.Closeable;
7 import java.io.IOException;
8 import java.io.InputStream;
9 
10 /**
11  * The result of the operation of obtaining a Lottie animation
12  */
13 public interface LottieFetchResult extends Closeable {
14   /**
15    * @return Is the operation successful
16    */
isSuccessful()17   boolean isSuccessful();
18 
19   /**
20    * @return Received content stream
21    */
22   @NonNull
bodyByteStream()23   InputStream bodyByteStream() throws IOException;
24 
25   /**
26    * @return Type of content received
27    */
28   @Nullable
contentType()29   String contentType();
30 
31   /**
32    * @return Operation error
33    */
34   @Nullable
error()35   String error();
36 }
37