Controlling Image Caching in Xamarin.Forms & .NET MAUI

Поділитися
Вставка

КОМЕНТАРІ •

  • @abaal2109
    @abaal2109 3 роки тому +8

    In xaml if you set the cache validity to 0:1:0 it will do it for 1 minute.

    • @JamesMontemagno
      @JamesMontemagno  3 роки тому +2

      🤯🤯🤯 I knew someone would know how to do it! I’ll try it out. I searched for like an hour with no success

    • @abaal2109
      @abaal2109 3 роки тому +1

      @@JamesMontemagno When i started working with wpf that's one of the cool thing i learned.

  • @Emrys_Gough
    @Emrys_Gough 3 роки тому

    I appreciate the videos that you are creating in this series. These videos are helping me build my own app as I teach myself.

  • @ap00rva
    @ap00rva 8 місяців тому

    Thanks for the example. One thing that we are struggling in Maui is that the Image Url that we have is protected and we have to provide an Authorization bearer token, so is there a way to inject the HTTP header and put the Authorization token? This is specifically for Android.

  • @emmanueladebiyi2109
    @emmanueladebiyi2109 3 роки тому

    Nice to know this. Thanks James!

  • @danielc6765
    @danielc6765 2 роки тому

    Could you explain about a listview with images from local storage?

  • @wilddy88
    @wilddy88 Рік тому

    Hello James, great video as usual. Is there a way to check if the image is loaded correctly? So that we can change to a placeholder image if the load fails ?

  •  Рік тому +1

    Is there a way to improve local image loading ? Since we are on MAUI and can't use FFImageLoading, there are small lags when displaying local image in collectionview

    • @JamesMontemagno
      @JamesMontemagno  Рік тому +1

      Have you looked at t.co/73i5Haumr3 also there is a new ffimageloading as well I think github.com/Redth/FFImageLoading

    •  Рік тому

      @@JamesMontemagno our main performance issue is on Android, image displaying is not as smooth as xamarin. we are still looking for an improvement.

  • @Mielesplayz
    @Mielesplayz 2 роки тому +2

    thanks, I didn't know you can just simply disable caching from an image
    (I have a profile picture system, but it kept loading previous images because of the cache)

  • @NavneetKeyIdeas
    @NavneetKeyIdeas Рік тому

    Is there any way to clear the image cache if the image changed in url?

  • @fanyang1972
    @fanyang1972 7 місяців тому

    What if the image is stored locally; and can be taken?

    • @fanyang1972
      @fanyang1972 7 місяців тому +2

      figured out: replacing ImageSource.FromFile( localFile) with
      var byteArray = File.ReadAllBytes(localFile); ImageSource.FromStream(() => new MemoryStream(byteArray))

  • @treasurenkonyana2745
    @treasurenkonyana2745 3 роки тому

    Hi James thanks for the great video. What I want to know is, what if you want to cache the Image for a feew days but still be able to allow the user to update it before the cache experation date? cause the Image does not update if still cached even on property changed. and I don't think it's optimal to diable cache

    • @JamesMontemagno
      @JamesMontemagno  3 роки тому +1

      Not that I know of off the top of my mind. What you may be able to do is create the image with the normal cache days but when you refresh manually then turn off caching in that instance and then put it back later

    • @treasurenkonyana2745
      @treasurenkonyana2745 3 роки тому

      @@JamesMontemagno Did anyone ever told you that you are a genius :) haha Thanks it worked

  • @MrNawshad
    @MrNawshad 3 роки тому +2

    Great stuff as always.

  • @poorneshv7532
    @poorneshv7532 2 роки тому

    @James Montemagno
    Great Content !! Will you be uploading content on push notifications in the future?

    • @JamesMontemagno
      @JamesMontemagno  2 роки тому +1

      Checkout Gerald's recent videos on push - ua-cam.com/video/AKYebqOCAzY/v-deo.html

  • @greeksinmars
    @greeksinmars 3 роки тому

    Very cool...

  • @williamprogramer4168
    @williamprogramer4168 3 роки тому

    ⭐⭐⭐⭐⭐

  • @irql2
    @irql2 3 роки тому +1

    Oh no, you forgot to enable dark mode in vs2022! Please think of your viewers eyes! lol :)