-
public class GifHelper
-
-
Field Summary
Fields Modifier and Type Field Description public final static intNEEDED_BYTES_FOR_TYPE_CHECK
-
Method Summary
Modifier and Type Method Description static booleanisPotentiallyAGif(@NonNull() Array<int> data)Returns whether the data represents a GIFOnly the first 6 bytes are needed static GifDrawablegetDrawableForBytes(@NonNull() Context context, @NonNull() Array<byte> data, boolean start)Get a GifDrawable for the given byte arrayIt is assumed that the byte array has been checked with isPotentiallyAGif -
-
Method Detail
-
isPotentiallyAGif
static boolean isPotentiallyAGif(@NonNull() Array<int> data)
Returns whether the data represents a GIF
Only the first 6 bytes are needed
-
getDrawableForBytes
static GifDrawable getDrawableForBytes(@NonNull() Context context, @NonNull() Array<byte> data, boolean start)
Get a GifDrawable for the given byte array
It is assumed that the byte array has been checked with isPotentiallyAGif
-
-
-
-