Tags

class Tags

A map of custom objects. These are used to attach custom data to an ImageRequest.

Unlike Parameters, Tags do not affect the memory cache key for a request. Tags are also attached to any OkHttp Requests executed as part of an image request whereas parameters are not.

See also

Types

Companion
Link copied to clipboard
object Companion

Functions

asMap
Link copied to clipboard
fun asMap(): Map<Class<*>, Any>
Get the underlying immutable map used by this instance.
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
tag
Link copied to clipboard
inline fun <T : Any> tag(): T?
Return the tag associated with T.
fun <T : Any> tag(type: Class<out T>): T?
Return the tag associated with type.
toString
Link copied to clipboard
open override fun toString(): String