Closed Almis90 closed 7 years ago
You need put that image into a view. So you need a .Into(_imageView) at the end of the LoadUrl, like in the wiki.
It may work but why it should fire only when you loading into a view? The method name suggests that it will fire whenever file finishes writing.
@Almis90 @EmmanVazz
Calling just ImageService.Instance.LoadUrl
only creates image loading task, doesn't run it. To run task you have to call:
DownloadOnly()
methodsPreload()
methodsInto()
methodsPreload
/ DownloadOnly
will allow you to load image without loading it into a view.
Sorry I don't know how I missed it from my code but at the end I already have DownloadOnly()
. It seems like it sometimes work and sometimes not (Most times not). I will make a repo and post it here.
I have a similar problem. I have the image already assigned to an ImageView
but also want to download it. I see following behavior:
DownloadOnly
the Success
callback is called. Other callbacks like Progress
and FileWriteFinished
are not called.Into
and then I trigger DownloadOnly
for the same Url, none of the callbacks are called. However, if I do DownloadOnly
on the same Url after the image is displayed, Success
is called.The behavior above is on Android.
The image url is http://media2.giphy.com/media/26BROh4qLWbwq7A1a/200w_d.gif
I put breakpoint but it not breaks there.
Edit: Missed the
DownloadOnly()
from code