com.bumptech.glide.load.resource.transcode
Class GifBitmapWrapperDrawableTranscoder
java.lang.Object
com.bumptech.glide.load.resource.transcode.GifBitmapWrapperDrawableTranscoder
- All Implemented Interfaces:
- ResourceTranscoder<GifBitmapWrapper,GlideDrawable>
public class GifBitmapWrapperDrawableTranscoder
- extends Object
- implements ResourceTranscoder<GifBitmapWrapper,GlideDrawable>
An ResourceTranscoder
that can transcode either an
Bitmap
or an GifDrawable
into an
Drawable
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GifBitmapWrapperDrawableTranscoder
public GifBitmapWrapperDrawableTranscoder(ResourceTranscoder<Bitmap,GlideBitmapDrawable> bitmapDrawableResourceTranscoder)
transcode
public Resource<GlideDrawable> transcode(Resource<GifBitmapWrapper> toTranscode)
- Description copied from interface:
ResourceTranscoder
- Transcodes the given resource to the new resource type and returns the wew resource.
- Specified by:
transcode
in interface ResourceTranscoder<GifBitmapWrapper,GlideDrawable>
- Parameters:
toTranscode
- The resource to transcode.
getId
public String getId()
- Specified by:
getId
in interface ResourceTranscoder<GifBitmapWrapper,GlideDrawable>