質問

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