UnitTransformation

class UnitTransformation<T> : Transformation<T>

A no-op Transformation that simply returns the given resource.

Parameters

<T>

The type of the resource that will always be returned unmodified.

Functions

Link copied to clipboard
abstract fun equals(o: Any): Boolean
For caching to work correctly, implementations must implement this method and hashCode.
Link copied to clipboard
open fun <T> get(): UnitTransformation<T>
Returns a UnitTransformation for the given type.
Link copied to clipboard
abstract fun hashCode(): Int
For caching to work correctly, implementations must implement this method and equals.
Link copied to clipboard
open fun transform(    context: Context,     resource: Resource<T>,     outWidth: Int,     outHeight: Int): Resource<T>
Transforms the given resource and returns the transformed resource.
Link copied to clipboard
open fun updateDiskCacheKey(messageDigest: MessageDigest)
Adds all uniquely identifying information to the given digest.

Properties

Link copied to clipboard
val CHARSET: Charset
Link copied to clipboard
val STRING_CHARSET_NAME: String