Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

UrlImageViewHelper and callback IUrlImageViewCallback

$
0
0

Hello,

I'm looking how to add a callback on the "SetUrlDrawable" method from UrlImageViewHelper.

SetUrlDrawable(ImageView imageView, string url, IUrlImageViewCallback callback)

But I don't really understand how to add the call back...

Here is my class

class PictureSoMeCallback : IUrlImageViewCallback { void IUrlImageViewCallback.OnLoaded(ImageView imageView, Drawable loadedDrawable, string url, bool loadedFromCache){ Console.WriteLine ("Callback called"); } }

I don't really understand how to manage that...

Thank you!

Edit : As simple than :

UrlImageViewHelper.UrlImageViewHelper.SetUrlDrawable (pictureView, picture.media_url, new PictureSoMeCallback());


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>