com.sdklite.sphere.hybrid.spi.WebRequestInterceptor Maven / Gradle / Ivy
package com.sdklite.sphere.hybrid.spi;
import java.util.Map;
import android.net.Uri;
import android.webkit.WebResourceResponse;
import android.webkit.WebView;
/**
* The web request interceptor is used for URL intercepting by web view
*
* @author johnsonlee
* @since 1.0.0
*/
public interface WebRequestInterceptor {
/**
* Intercept the specified URL
*
* @param view
* The web view
* @param uri
* The request URI
* @param headers
* The request headers
* @return the response data or null
*/
public WebResourceResponse intercept(final WebView view, final Uri uri, final Map headers);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy