RequestVerifyingInterceptor

class RequestVerifyingInterceptor(networkingRulesEngine: NetworkingRulesEngine) : Interceptor

Interceptor that short circuits and requests on unsuitable networks, such that accidental downloads over expensive networks are not possible.

No specific rules are implemented, instead deferring to com.google.android.horologist.networks.rules.NetworkingRules

Constructors

Link copied to clipboard
constructor(networkingRulesEngine: NetworkingRulesEngine)

Functions

Link copied to clipboard
open override fun intercept(chain: Interceptor.Chain): Response