com.bumptech.glide.load.resource.transcode.ResourceTranscoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glide Show documentation
Show all versions of glide Show documentation
A fast and efficient image loading library for Android focused on smooth scrolling.
The newest version!
package com.bumptech.glide.load.resource.transcode;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.bumptech.glide.load.Options;
import com.bumptech.glide.load.engine.Resource;
/**
* Transcodes a resource of one type to a resource of another type.
*
* @param The type of the resource that will be transcoded from.
* @param The type of the resource that will be transcoded to.
*/
public interface ResourceTranscoder {
/**
* Transcodes the given resource to the new resource type and returns the new resource.
*
* @param toTranscode The resource to transcode.
*/
@Nullable
Resource transcode(@NonNull Resource toTranscode, @NonNull Options options);
}