teller / com.levibostian.teller.cachestate / OnlineDataState / deliverCacheState

deliverCacheState

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

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

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