Reputation: 31
I have loaded a url in webview, when I click on a button a new view appears in the webview without changing the url. Is there any way to capture this state change in the webview?
Upvotes: 1
Views: 368
Reputation: 93
yeah checkout https://developer.android.com/reference/android/webkit/WebView#addJavascriptInterface(java.lang.Object,%20java.lang.String) using js interface is the only way to register changes in the webview
Upvotes: 2