Detect android webview URL location change

前端 未结 1 759
迷失自我
迷失自我 2020-12-10 13:05

Does anyone else know how to track a sort of webview \"onLocationChange\"? iOS has something like this for its webview.

PS - I am trying to see if I can use the phon

相关标签:
1条回答
  • 2020-12-10 13:32

    If you want to manipulate the URL then override this:

    public boolean shouldOverrideUrlLoading (WebView view, String url)
    

    Give the host application a chance to take over the control when a new url is about to be loaded in the current WebView.

    [WebViewClient Reference]

    0 讨论(0)
提交回复
热议问题