teller-android / com.levibostian.teller.cachestate / OnlineCacheState / deliverCacheState

deliverCacheState

fun deliverCacheState(listener: OnlineCacheStateCacheListener<CACHE>): Unit

This is usually used in the UI of an app to display the cached response to a user.

Using this function, you can get the state of the cached response as well as handle errors that may have happened during fetching the cached response.