Java Code Examples for org.xwalk.core.XWalkView#getNavigationHistory()
The following examples show how to use
org.xwalk.core.XWalkView#getNavigationHistory() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CrosswalkWebView.java From react-native-crosswalk-webview-plus with MIT License | 6 votes |
@Override public void onLoadStarted (XWalkView view, String url) { if(!url.equals("")){ XWalkNavigationHistory navigationHistory = view.getNavigationHistory(); if(navigationHistory!=null) eventDispatcher.dispatchEvent( new NavigationStateChangeEvent( getId(), SystemClock.uptimeMillis(), view.getTitle(), true, url, navigationHistory.canGoBack(), navigationHistory.canGoForward() ) ); } }
Example 2
Source File: CrosswalkWebView.java From react-native-webview-crosswalk with MIT License | 6 votes |
@Override public void onLoadFinished (XWalkView view, String url) { ((CrosswalkWebView) view).linkBridge(); ((CrosswalkWebView) view).callInjectedJavaScript(); XWalkNavigationHistory navigationHistory = view.getNavigationHistory(); eventDispatcher.dispatchEvent( new NavigationStateChangeEvent( getId(), SystemClock.uptimeMillis(), view.getTitle(), false, url, navigationHistory.canGoBack(), navigationHistory.canGoForward() ) ); }
Example 3
Source File: CrosswalkWebView.java From react-native-crosswalk-webview-plus with MIT License | 5 votes |
@Override public void onLoadFinished (XWalkView view, String url) { if(!url.equals("")){ ((CrosswalkWebView) view).linkBridge(); ((CrosswalkWebView) view).callInjectedJavaScript(); XWalkNavigationHistory navigationHistory = view.getNavigationHistory(); eventDispatcher.dispatchEvent( new LoadFinishedEvent( getId(), SystemClock.uptimeMillis() ) ); if(navigationHistory!=null) eventDispatcher.dispatchEvent( new NavigationStateChangeEvent( getId(), SystemClock.uptimeMillis(), view.getTitle(), false, url, navigationHistory.canGoBack(), navigationHistory.canGoForward() ) ); } }
Example 4
Source File: CrosswalkWebView.java From react-native-webview-crosswalk with MIT License | 5 votes |
@Override public void onLoadStarted (XWalkView view, String url) { XWalkNavigationHistory navigationHistory = view.getNavigationHistory(); eventDispatcher.dispatchEvent( new NavigationStateChangeEvent( getId(), SystemClock.uptimeMillis(), view.getTitle(), true, url, navigationHistory.canGoBack(), navigationHistory.canGoForward() ) ); }