Interface ResourceTranscoder<Z,R>

Type Parameters:
Z - The type of the resource that will be transcoded from.
R - The type of the resource that will be transcoded to.
All Known Implementing Classes:
BitmapBytesTranscoder, BitmapDrawableTranscoder, DrawableBytesTranscoder, GifDrawableBytesTranscoder, UnitTranscoder

public interface ResourceTranscoder<Z,R>
Transcodes a resource of one type to a resource of another type.
  • Method Summary

    Modifier and Type
    Method
    Description
    transcode(Resource<Z> toTranscode, Options options)
    Transcodes the given resource to the new resource type and returns the new resource.
  • Method Details

    • transcode

      @Nullable Resource<R> transcode(@NonNull Resource<Z> toTranscode, @NonNull Options options)
      Transcodes the given resource to the new resource type and returns the new resource.
      Parameters:
      toTranscode - The resource to transcode.