com.bumptech.glide.load.resource.transcode
Class GifBitmapWrapperDrawableTranscoder

java.lang.Object
  extended by 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.


Constructor Summary
GifBitmapWrapperDrawableTranscoder(ResourceTranscoder<Bitmap,GlideBitmapDrawable> bitmapDrawableResourceTranscoder)
           
 
Method Summary
 String getId()
           
 Resource<GlideDrawable> transcode(Resource<GifBitmapWrapper> toTranscode)
          Transcodes the given resource to the new resource type and returns the wew resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GifBitmapWrapperDrawableTranscoder

public GifBitmapWrapperDrawableTranscoder(ResourceTranscoder<Bitmap,GlideBitmapDrawable> bitmapDrawableResourceTranscoder)
Method Detail

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>