Glide | Header Authentication, Setting Disk Cache and Persistent Cache #18038
PATRICKdallat
started this conversation in
Upgrading from Xamarin
Replies: 1 comment 1 reply
-
The Glide implementation for MAUI is all in Java: @mattleibow @Redth is there any exposed way to access the underlying Glide APIs? An example I implemented in glidex was this "random alpha" handler: https://github.com/jonathanpeppers/glidex/blob/main/glidex.forms.sample/RandomAlphaHandler.cs It was just a way to test devs had a way to configure Glide. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am currently in the process of migrating a Xamarin project, alongside my team. Right now, we're using GlideX.Forms for Android Image Loading.
In our current setup, we've got Glide set up to write to a directory outside of the app's cache directory to steer clear of garbage collection issues. On top of that, we're adding authentication header values to our URI image requests.
I've been diving into the .NET MAUI codebase, but I've hit a couple of roadblocks. I'm hoping you can shed some light on these questions:
Is there a way to set the disk cache directory during app startup, either before or when Glide gets going?
Can we append authentication header values before the PlatformInterop process kicks in?
As a bonus, I'm curious about whether we have to keep the cache directory outside the app to ensure cache doesn't get wiped out by garbage collection. Or maybe there's a nifty way to flag cache as persistent within .NET MAUI?
@jonathanpeppers Your insights on these issues would be a huge help for our project. Thanks a ton for your time and expertise.
Beta Was this translation helpful? Give feedback.
All reactions