To invalidate a particular image cache
Picasso.with(getApplicationContext()).invalidate(getProfileImageURL());
To clear all cache contents
Picasso.with(context).cache.clear()
To explicitly set the cache policy
Picasso.with(context).load(uri).networkPolicy(NetworkPolicy.NO_CACHE)
.memoryPolicy(MemoryPolicy.NO_CACHE)
.placeholder(R.drawable.bv_logo_default).stableKey(id)
.into(viewImage_imageView);
Picasso.with(getApplicationContext()).invalidate(getProfileImageURL());
To clear all cache contents
Picasso.with(context).cache.clear()
To explicitly set the cache policy
Picasso.with(context).load(uri).networkPolicy(NetworkPolicy.NO_CACHE)
.memoryPolicy(MemoryPolicy.NO_CACHE)
.placeholder(R.drawable.bv_logo_default).stableKey(id)
.into(viewImage_imageView);
No comments:
Post a Comment