Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving download? Caching detail? #6

Open
Zolnier opened this issue May 6, 2020 · 4 comments
Open

Saving download? Caching detail? #6

Zolnier opened this issue May 6, 2020 · 4 comments
Labels
good first issue Good for newcomers

Comments

@Zolnier
Copy link

Zolnier commented May 6, 2020

Love this resource! Very elegant! Is there a way to save the downloaded image to a file during runtime? Also, what is the function of the .Caching(true) element as I cannot find any documentation on that? Great work on this!!

@shamsdev
Copy link
Owner

shamsdev commented May 7, 2020

Hello. I'm happy to hear that you are using Davinci.
First, you can simply control caching with setCached function. (Default is True)
Davinci.get().load(imageUrl).setCached(true).into(image).start();
Also, thanks for mentioning "save the downloaded image to a file", it's a good feature. Currently, we save cached images as a file in Application.persistentDataPath + "/" + "davinci" + "/" but not returning the full path of file.
I'll be happy if anyone can send a PR for add this feature, otherwise I'll work on this soon.
Thanks Zolnier 😉

@shamsdev shamsdev added the good first issue Good for newcomers label May 7, 2020
@Techie-Pi
Copy link
Contributor

Techie-Pi commented May 11, 2020

I'll be happy if anyone can send a PR for add this feature, otherwise I'll work on this soon.

I'm actually working on it too 😉
I can't use Unity in some days, but anyway I'm trying to add the feature (when I test it, I'll make the PR)

@shamsdev
Copy link
Owner

I'll be happy if anyone can send a PR for add this feature, otherwise I'll work on this soon.

I'm actually working on it too 😉
I can't use Unity in some days, but anyway I'm trying to add the feature (when I test it, I'll make the PR)

Sounds great! Thank you

@saitejapalagummi
Copy link

will this plugin works for unity webgl. and the cache part also?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants