1package androidx.webkit { 2 3 public abstract class SafeBrowsingResponseCompat { 4 method public abstract void backToSafety(boolean); 5 method public abstract void proceed(boolean); 6 method public abstract void showInterstitial(boolean); 7 } 8 9 public abstract class ServiceWorkerClientCompat { 10 ctor public ServiceWorkerClientCompat(); 11 method public abstract android.webkit.WebResourceResponse shouldInterceptRequest(android.webkit.WebResourceRequest); 12 } 13 14 public abstract class ServiceWorkerControllerCompat { 15 method public static androidx.webkit.ServiceWorkerControllerCompat getInstance(); 16 method public abstract androidx.webkit.ServiceWorkerWebSettingsCompat getServiceWorkerWebSettings(); 17 method public abstract void setServiceWorkerClient(androidx.webkit.ServiceWorkerClientCompat); 18 } 19 20 public abstract class ServiceWorkerWebSettingsCompat { 21 method public abstract boolean getAllowContentAccess(); 22 method public abstract boolean getAllowFileAccess(); 23 method public abstract boolean getBlockNetworkLoads(); 24 method public abstract int getCacheMode(); 25 method public abstract void setAllowContentAccess(boolean); 26 method public abstract void setAllowFileAccess(boolean); 27 method public abstract void setBlockNetworkLoads(boolean); 28 method public abstract void setCacheMode(int); 29 } 30 31 public class WebMessageCompat { 32 ctor public WebMessageCompat(java.lang.String); 33 ctor public WebMessageCompat(java.lang.String, androidx.webkit.WebMessagePortCompat[]); 34 method public java.lang.String getData(); 35 method public androidx.webkit.WebMessagePortCompat[] getPorts(); 36 } 37 38 public abstract class WebMessagePortCompat { 39 method public abstract void close(); 40 method public abstract void postMessage(androidx.webkit.WebMessageCompat); 41 method public abstract void setWebMessageCallback(androidx.webkit.WebMessagePortCompat.WebMessageCallbackCompat); 42 method public abstract void setWebMessageCallback(android.os.Handler, androidx.webkit.WebMessagePortCompat.WebMessageCallbackCompat); 43 } 44 45 public static abstract class WebMessagePortCompat.WebMessageCallbackCompat { 46 ctor public WebMessagePortCompat.WebMessageCallbackCompat(); 47 method public void onMessage(androidx.webkit.WebMessagePortCompat, androidx.webkit.WebMessageCompat); 48 } 49 50 public abstract class WebResourceErrorCompat { 51 method public abstract java.lang.CharSequence getDescription(); 52 method public abstract int getErrorCode(); 53 } 54 55 public class WebResourceRequestCompat { 56 method public static boolean isRedirect(android.webkit.WebResourceRequest); 57 } 58 59 public class WebSettingsCompat { 60 method public static int getDisabledActionModeMenuItems(android.webkit.WebSettings); 61 method public static boolean getOffscreenPreRaster(android.webkit.WebSettings); 62 method public static boolean getSafeBrowsingEnabled(android.webkit.WebSettings); 63 method public static void setDisabledActionModeMenuItems(android.webkit.WebSettings, int); 64 method public static void setOffscreenPreRaster(android.webkit.WebSettings, boolean); 65 method public static void setSafeBrowsingEnabled(android.webkit.WebSettings, boolean); 66 } 67 68 public class WebViewClientCompat extends android.webkit.WebViewClient { 69 ctor public WebViewClientCompat(); 70 method public final void onReceivedError(android.webkit.WebView, android.webkit.WebResourceRequest, android.webkit.WebResourceError); 71 method public void onReceivedError(android.webkit.WebView, android.webkit.WebResourceRequest, androidx.webkit.WebResourceErrorCompat); 72 method public final void onSafeBrowsingHit(android.webkit.WebView, android.webkit.WebResourceRequest, int, android.webkit.SafeBrowsingResponse); 73 method public void onSafeBrowsingHit(android.webkit.WebView, android.webkit.WebResourceRequest, int, androidx.webkit.SafeBrowsingResponseCompat); 74 } 75 76 public class WebViewCompat { 77 method public static androidx.webkit.WebMessagePortCompat[] createWebMessageChannel(android.webkit.WebView); 78 method public static android.content.pm.PackageInfo getCurrentWebViewPackage(android.content.Context); 79 method public static android.net.Uri getSafeBrowsingPrivacyPolicyUrl(); 80 method public static void postVisualStateCallback(android.webkit.WebView, long, androidx.webkit.WebViewCompat.VisualStateCallback); 81 method public static void postWebMessage(android.webkit.WebView, androidx.webkit.WebMessageCompat, android.net.Uri); 82 method public static void setSafeBrowsingWhitelist(java.util.List<java.lang.String>, android.webkit.ValueCallback<java.lang.Boolean>); 83 method public static void startSafeBrowsing(android.content.Context, android.webkit.ValueCallback<java.lang.Boolean>); 84 } 85 86 public static abstract interface WebViewCompat.VisualStateCallback { 87 method public abstract void onComplete(long); 88 } 89 90 public class WebViewFeature { 91 method public static boolean isFeatureSupported(java.lang.String); 92 field public static final java.lang.String DISABLED_ACTION_MODE_MENU_ITEMS = "DISABLED_ACTION_MODE_MENU_ITEMS"; 93 field public static final java.lang.String OFF_SCREEN_PRERASTER = "OFF_SCREEN_PRERASTER"; 94 field public static final java.lang.String RECEIVE_HTTP_ERROR = "RECEIVE_HTTP_ERROR"; 95 field public static final java.lang.String RECEIVE_WEB_RESOURCE_ERROR = "RECEIVE_WEB_RESOURCE_ERROR"; 96 field public static final java.lang.String SAFE_BROWSING_ENABLE = "SAFE_BROWSING_ENABLE"; 97 field public static final java.lang.String SAFE_BROWSING_HIT = "SAFE_BROWSING_HIT"; 98 field public static final java.lang.String SAFE_BROWSING_PRIVACY_POLICY_URL = "SAFE_BROWSING_PRIVACY_POLICY_URL"; 99 field public static final java.lang.String SAFE_BROWSING_RESPONSE_BACK_TO_SAFETY = "SAFE_BROWSING_RESPONSE_BACK_TO_SAFETY"; 100 field public static final java.lang.String SAFE_BROWSING_RESPONSE_PROCEED = "SAFE_BROWSING_RESPONSE_PROCEED"; 101 field public static final java.lang.String SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL = "SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL"; 102 field public static final java.lang.String SAFE_BROWSING_WHITELIST = "SAFE_BROWSING_WHITELIST"; 103 field public static final java.lang.String SERVICE_WORKER_BASIC_USAGE = "SERVICE_WORKER_BASIC_USAGE"; 104 field public static final java.lang.String SERVICE_WORKER_BLOCK_NETWORK_LOADS = "SERVICE_WORKER_BLOCK_NETWORK_LOADS"; 105 field public static final java.lang.String SERVICE_WORKER_CACHE_MODE = "SERVICE_WORKER_CACHE_MODE"; 106 field public static final java.lang.String SERVICE_WORKER_CONTENT_ACCESS = "SERVICE_WORKER_CONTENT_ACCESS"; 107 field public static final java.lang.String SERVICE_WORKER_FILE_ACCESS = "SERVICE_WORKER_FILE_ACCESS"; 108 field public static final java.lang.String SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST = "SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST"; 109 field public static final java.lang.String SHOULD_OVERRIDE_WITH_REDIRECTS = "SHOULD_OVERRIDE_WITH_REDIRECTS"; 110 field public static final java.lang.String START_SAFE_BROWSING = "START_SAFE_BROWSING"; 111 field public static final java.lang.String VISUAL_STATE_CALLBACK = "VISUAL_STATE_CALLBACK"; 112 field public static final java.lang.String WEB_RESOURCE_ERROR_GET_CODE = "WEB_RESOURCE_ERROR_GET_CODE"; 113 field public static final java.lang.String WEB_RESOURCE_ERROR_GET_DESCRIPTION = "WEB_RESOURCE_ERROR_GET_DESCRIPTION"; 114 field public static final java.lang.String WEB_RESOURCE_REQUEST_IS_REDIRECT = "WEB_RESOURCE_REQUEST_IS_REDIRECT"; 115 } 116 117} 118 119