WebResourceRequestCompat

open class WebResourceRequestCompat
kotlin.Any
   ↳ androidx.webkit.WebResourceRequestCompat

Compatibility version of WebResourceRequest.

Summary

Public methods

open static Boolean
isRedirect(@NonNull request: WebResourceRequest)

Gets whether the request was a result of a server-side redirect.

Public methods

isRedirect

open static fun isRedirect(@NonNull request: WebResourceRequest): Boolean

Gets whether the request was a result of a server-side redirect.

This method should only be called if WebViewFeature#isFeatureSupported(String) returns true for WebViewFeature#WEB_RESOURCE_REQUEST_IS_REDIRECT.

Return
Boolean: whether the request was a result of a server-side redirect.