Frage

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?

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top