WebResourceRequestCompat

public class WebResourceRequestCompat
extends Object

java.lang.Object
   ↳ androidx.webkit.WebResourceRequestCompat


Compatibility version of WebResourceRequest.

Summary

Public methods

static boolean isRedirect(WebResourceRequest request)

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

Inherited methods

Public methods

isRedirect

public static boolean isRedirect (WebResourceRequest request)

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.

Parameters
request WebResourceRequest

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