Код: Выделить всё
data class AvatarPreload(
val base64: String,
val uid: Long
)
р>
Код: Выделить всё
// persudo code
val rq = ImageRequest.Builder(context).data(avatarPreload).memoryCacheKey(avatarPreload.uid.toLong()).build()
context.imageLoader.execute(rq)
Код: Выделить всё
data class AvatarForView(
val uid: Long
)
Код: Выделить всё
// persudo code, I want to use uid to get the preload image
val rq = ImageRequest.Builder(context).data(avatarForView.uid).build()
context.imageLoader.execute(rq)
Подробнее здесь: https://stackoverflow.com/questions/789 ... from-cache