WebResourceRequestCompat


public class WebResourceRequestCompat


Compatibility version of WebResourceRequest.

Summary

Public methods

static boolean
@RequiresFeature(name = WebViewFeature.WEB_RESOURCE_REQUEST_IS_REDIRECT, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported")
isRedirect(@NonNull WebResourceRequest request)

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

Public methods

isRedirect

Added in 1.1.0
@RequiresFeature(name = WebViewFeature.WEB_RESOURCE_REQUEST_IS_REDIRECT, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported")
public static boolean isRedirect(@NonNull WebResourceRequest request)

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.