public static class TuSdkWebView.TuSdkWebViewAdapter
extends java.lang.Object
构造器和说明 |
---|
TuSdkWebViewAdapter() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
onJsAlert(TuSdkWebView view,
java.lang.String url,
java.lang.String message,
android.webkit.JsResult result)
允许js中的alert方法
|
boolean |
onJsConfirm(TuSdkWebView view,
java.lang.String url,
java.lang.String message,
android.webkit.JsResult result) |
boolean |
onJsPrompt(TuSdkWebView view,
java.lang.String url,
java.lang.String message,
java.lang.String defaultValue,
android.webkit.JsPromptResult result) |
void |
onPageFinished(TuSdkWebView view,
java.lang.String url)
页面加载完成
|
void |
onPageStarted(TuSdkWebView view,
java.lang.String url,
android.graphics.Bitmap favicon)
页面加载开始
|
void |
onProgressChanged(TuSdkWebView view,
int newProgress)
进度改变
|
void |
onReceivedError(TuSdkWebView view,
int errorCode,
java.lang.String description,
java.lang.String failingUrl)
页面读取错误
|
void |
onReceivedTitle(TuSdkWebView view,
java.lang.String title)
获取页面标题
|
boolean |
shouldOverrideUrlLoading(TuSdkWebView view,
java.lang.String url)
使用本页加载
|
public boolean shouldOverrideUrlLoading(TuSdkWebView view, java.lang.String url)
public void onReceivedError(TuSdkWebView view, int errorCode, java.lang.String description, java.lang.String failingUrl)
public void onPageStarted(TuSdkWebView view, java.lang.String url, android.graphics.Bitmap favicon)
public void onPageFinished(TuSdkWebView view, java.lang.String url)
public void onReceivedTitle(TuSdkWebView view, java.lang.String title)
public void onProgressChanged(TuSdkWebView view, int newProgress)
public boolean onJsAlert(TuSdkWebView view, java.lang.String url, java.lang.String message, android.webkit.JsResult result)
public boolean onJsConfirm(TuSdkWebView view, java.lang.String url, java.lang.String message, android.webkit.JsResult result)
public boolean onJsPrompt(TuSdkWebView view, java.lang.String url, java.lang.String message, java.lang.String defaultValue, android.webkit.JsPromptResult result)