teller-android / com.levibostian.teller.repository / OnlineRepository / observe

observe

fun observe(): Observable<OnlineCacheState<CACHE>>

How to begin observing the state of the cache for this OnlineRepository.

Teller will automatically perform a refresh if the cache does not exist or is too old. You will get notified anytime that the state of the cache changes.

Exceptions

RuntimeException - If calling after calling dispose.