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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top