Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.webkit:webkit:1.1.0-alpha01

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

added in version 1.0.0
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.