com.facebook.react.views.webview.events.TopLoadingStartEvent Java Examples

The following examples show how to use com.facebook.react.views.webview.events.TopLoadingStartEvent. 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: Web3WebviewManager.java    From react-native-web3-webview with MIT License 5 votes vote down vote up
@Override
public void onPageStarted(final WebView webView, String url, Bitmap favicon) {
    super.onPageStarted(webView, url, favicon);

    mLastLoadFailed = false;
    dispatchEvent(
            webView,
            new TopLoadingStartEvent(
                    webView.getId(),
                    createWebViewEvent(webView, url)));
    Web3Webview Web3Webview = (Web3Webview) webView;
}
 
Example #2
Source File: Web3WebviewManager.java    From react-native-web3-webview with MIT License 5 votes vote down vote up
@Override
public void doUpdateVisitedHistory(WebView webView, String url, boolean isReload) {
    super.doUpdateVisitedHistory(webView, url, isReload);
    dispatchEvent(
            webView,
            new TopLoadingStartEvent(
                    webView.getId(),
                    createWebViewEvent(webView, url)));
}
 
Example #3
Source File: ReactWebViewManager.java    From react-native-GPay with MIT License 5 votes vote down vote up
@Override
public void onPageStarted(WebView webView, String url, Bitmap favicon) {
  super.onPageStarted(webView, url, favicon);
  mLastLoadFailed = false;

  dispatchEvent(
    webView,
    new TopLoadingStartEvent(
      webView.getId(),
      createWebViewEvent(webView, url)));
}
 
Example #4
Source File: RNX5WebViewManager.java    From react-native-x5 with MIT License 5 votes vote down vote up
@Override
public void onPageStarted(WebView webView, String url, Bitmap favicon) {
    super.onPageStarted(webView, url, favicon);
    mLastLoadFailed = false;

    dispatchEvent(
            webView,
            new TopLoadingStartEvent(
                    webView.getId(),
                    createWebViewEvent(webView, url)));
}
 
Example #5
Source File: RNX5WebViewManager.java    From react-native-x5 with MIT License 5 votes vote down vote up
@Override
public void doUpdateVisitedHistory(WebView webView, String url, boolean isReload) {
    super.doUpdateVisitedHistory(webView, url, isReload);

    dispatchEvent(
            webView,
            new TopLoadingStartEvent(
                    webView.getId(),
                    createWebViewEvent(webView, url)));
}