Interface CefriumLoadHandler


public interface CefriumLoadHandler
Per-frame load notifications. Complements the binary loading state delivered via CefriumBrowser.OnLoadingStateChangedListener. Mirrors CEF's CefLoadHandler. Only the main frame is reported. All methods are default no-ops. Register with CefriumBrowser.setLoadHandler(CefriumLoadHandler).

Delivered on the browser UI thread.

  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    onLoadError(int errorCode, String errorText, String failedUrl)
    The main frame failed to load (WebView onReceivedError).
    default void
    The main frame started loading url.
  • Method Details

    • onLoadStart

      default void onLoadStart(String url)
      The main frame started loading url.
    • onLoadError

      default void onLoadError(int errorCode, String errorText, String failedUrl)
      The main frame failed to load (WebView onReceivedError).
      Parameters:
      errorCode - Chromium net error code (see net_error_list.h).
      errorText - Human-readable error text (may be empty).
      failedUrl - The URL that failed to load.