Package-level declarations

The ConnectivityHintsInterceptor.

Types

Link copied to clipboard
class ConnectivityHintsInterceptor(monitor: ERROR CLASS: Symbol not found for ConnectivityMonitor, ignore: (ERROR CLASS: Symbol not found for Request) -> Boolean = { false }) : <ERROR CLASS> ERROR CLASS: Symbol not found for Interceptor

OkHttp application interceptor that feeds request outcomes into a ConnectivityMonitor: any response → ConnectivityMonitor.reportReachable; an IOException → ConnectivityMonitor.requestRecheck. Cancelled calls are never reported. What each hint does is configured on the monitor (hints { ... }).