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