How to get the url when the page changes, using CustomTabsClient
?
For example WebView has a method:
@Override
public void onPageStarted(WebView view, String url, Bitmap favicon){}
I need a similar method for CustomTabs
.
I have found this one:
mClient.newSession(new CustomTabsCallback(){
@Override
public void onNavigationEvent(int navigationEvent, Bundle extras) {
super.onNavigationEvent(navigationEvent, extras);
}
@Override
public void extraCallback(String callbackName, Bundle args) {
super.extraCallback(callbackName, args);
}
});
But I am not sure if this is the one I need.