Package com.airbnb.lottie.network
Interface LottieFetchResult
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
DefaultLottieFetchResult
public interface LottieFetchResult extends Closeable
The result of the operation of obtaining a Lottie animation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreambodyByteStream()StringcontentType()Stringerror()booleanisSuccessful()
-
-
-
Method Detail
-
isSuccessful
boolean isSuccessful()
- Returns:
- Is the operation successful
-
bodyByteStream
@NonNull InputStream bodyByteStream() throws IOException
- Returns:
- Received content stream
- Throws:
IOException
-
contentType
@Nullable String contentType()
- Returns:
- Type of content received
-
error
@Nullable String error()
- Returns:
- Operation error
-
-