Rumour
Rumour

Reputation: 330

Picasso : want to cache a image without displaying it .so that i can use it later

I wanted to use picasso to cache images as i donot want to use it now ,may be later

what i get every where is

Picasso.with(this).load(url).into(imageView);

but what this does is load the image in image view in present.i dont want to use it right now.

Upvotes: 2

Views: 1156

Answers (1)

Michael
Michael

Reputation: 85

If you don't have a temporary Target or ImageView, you can load it into the cache using fetch, followed later by get.

From the documentation on fetch:

This is useful when you want to warm up the cache with an image.

Upvotes: 1

Related Questions