box / box-android-sdk

Apache License 2.0
62 stars 74 forks source link

How to enable caching in the SDK? #410

Open omkarhande-zz opened 5 years ago

omkarhande-zz commented 5 years ago

Right now, the SDK downloads the file every time before it displays it.

lub0s commented 5 years ago

There is an interface that you should implement https://github.com/box/box-android-sdk/blob/master/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxCache.java and you just pass the reference to BoxConfig by calling https://github.com/box/box-android-sdk/blob/master/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxConfig.java#L62

omkarhande-zz commented 4 years ago

@lupajz Is there any concrete example you can point to? The put function gets called several times.