Question

I am porting an existing app over to use Picasso. The existing app eagerly prefetches all the images in a list view. I can implement this with Picasso using fetch. However, in the existing app we cancel these prefetches if the user switches activities, this doesn't seem possible in Picasso, cancelRequest only accepts an ImageView or Target.

Is there a way to cancel fetch requests?

Was it helpful?

Solution

Not currently, no.

We are going to be adding request tagging soon which will allow you to cancel batches of requests by tag. This won't be in the forthcoming 2.3 release but probably the following one.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top