davinci icon indicating copy to clipboard operation
davinci copied to clipboard

Saving download? Caching detail?

Open Zolnier opened this issue 5 years ago • 4 comments

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!!

Zolnier avatar May 06 '20 14:05 Zolnier

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 avatar May 07 '20 07:05 shamsdev

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)

Techie-Pi avatar May 11 '20 12:05 Techie-Pi

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

shamsdev avatar May 12 '20 06:05 shamsdev

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

saitejapalagummi avatar May 20 '20 05:05 saitejapalagummi