0

I have offline first mobile chat app where chat messages can be also images.

I.e if I have 20 images, I want to download them first from URL and then to display them from the local files. In the meantime, I want to display a loading placeholder until the image is downloaded. Is there some best practice for doing this? Thanks!

UPDATE: I don't know when the image is downloaded because it will be processed in a queue and file location will be updated in local DB, so I can't await on that download process.

zlaayaa
  • 585
  • 2
  • 6
  • 25
  • Kindly check below link. Hope it helps. https://stackoverflow.com/questions/59632849/xamarin-forms-how-to-download-an-image-save-it-locally-and-display-it-on-scree – Krunal Bagadia Mar 18 '20 at 08:51

1 Answers1

0

FFImageLoading has a LoadingPlaceholder property for your Images that supports UriImageSource, FileImageSource and StreamImageSource

For more information and examples, check the docs

Greggz
  • 1,873
  • 1
  • 12
  • 31