WebResourceRequestCompat
class WebResourceRequestCompat
Compatibility version of WebResourceRequest.
Summary
Public functions |
|
|---|---|
java-static Boolean |
@RequiresFeature(name = WebViewFeature.WEB_RESOURCE_REQUEST_IS_REDIRECT, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported")Gets whether the request was a result of a server-side redirect. |
Public functions
isRedirect
Added in 1.1.0
@RequiresFeature(name = WebViewFeature.WEB_RESOURCE_REQUEST_IS_REDIRECT, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported")
java-static fun isRedirect(request: WebResourceRequest): Boolean
Gets whether the request was a result of a server-side redirect.
This method should only be called if isFeatureSupported returns true for WEB_RESOURCE_REQUEST_IS_REDIRECT.
| Returns | |
|---|---|
Boolean |
whether the request was a result of a server-side redirect. |