-
public class SprigWebClient extends WebViewClient
-
-
Field Summary
Fields Modifier and Type Field Description public final static SprigWebClientINSTANCE
-
Method Summary
Modifier and Type Method Description UnitonPageFinished(WebView view, String url)BooleanshouldOverrideUrlLoading(WebView view, String url)override open url behaviors to open text url link in a external page instead of inside the webview BooleanonRenderProcessGone(WebView view, RenderProcessGoneDetail detail)SprigWebView is loaded in the background and invisible unless a survey is shown. -
Methods inherited from class com.userleap.internal.SprigWebClient
doUpdateVisitedHistory, onFormResubmission, onLoadResource, onPageCommitVisible, onPageStarted, onReceivedClientCertRequest, onReceivedError, onReceivedError, onReceivedHttpAuthRequest, onReceivedHttpError, onReceivedLoginRequest, onReceivedSslError, onSafeBrowsingHit, onScaleChanged, onTooManyRedirects, onUnhandledKeyEvent, shouldInterceptRequest, shouldInterceptRequest, shouldOverrideKeyEvent, shouldOverrideUrlLoading -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onPageFinished
Unit onPageFinished(WebView view, String url)
-
shouldOverrideUrlLoading
Boolean shouldOverrideUrlLoading(WebView view, String url)
override open url behaviors to open text url link in a external page instead of inside the webview
-
onRenderProcessGone
Boolean onRenderProcessGone(WebView view, RenderProcessGoneDetail detail)
SprigWebView is loaded in the background and invisible unless a survey is shown. If there's a crash in it, we can't do anything with the SDK, but by returning true here we can at least stop the host application from crashing on Android 26+.
This is to address https://sprig-inc.atlassian.net/browse/CORE-6611 and to help prevent a crash seen when loading the bundled JS at SDK initialization
-
-
-
-