WebChromeClient

WebChromeClient

輔助WebView處理Javascript的對話框,網站圖標,網站title,加載進度等web

onCloseWindow(關閉WebView)網站

onCreateWindow()ip

onJsAlert (WebView上alert是彈不出來東西的,須要定製你的WebChromeClient處理彈出)it

onJsPromptview

onJsConfirmvi

onProgressChangedco

onReceivedIconscript

onReceivedTitlenew

webView.setWebChromeClient(new WebChromeClient()
{
public void onProgressChanged(WebView view, int progress)
{
//progress加載的進度
}
);void

相關文章
相關標籤/搜索