Interface GeckoSession.ProgressDelegate

Enclosing class:
GeckoSession

public static interface GeckoSession.ProgressDelegate
  • Method Details

    • onPageStart

      @UiThread default void onPageStart(@NonNull GeckoSession session, @NonNull String url)
      A View has started loading content from the network.
      Parameters:
      session - GeckoSession that initiated the callback.
      url - The resource being loaded.
    • onPageStop

      @UiThread default void onPageStop(@NonNull GeckoSession session, boolean success)
      A View has finished loading content from the network.
      Parameters:
      session - GeckoSession that initiated the callback.
      success - Whether the page loaded successfully or an error occurred.
    • onProgressChange

      @UiThread default void onProgressChange(@NonNull GeckoSession session, int progress)
      Page loading has progressed.
      Parameters:
      session - GeckoSession that initiated the callback.
      progress - Current page load progress value [0, 100].
    • onSecurityChange

      @UiThread default void onSecurityChange(@NonNull GeckoSession session, @NonNull GeckoSession.ProgressDelegate.SecurityInformation securityInfo)
      The security status has been updated.
      Parameters:
      session - GeckoSession that initiated the callback.
      securityInfo - The new security information.
    • onSessionStateChange

      @UiThread default void onSessionStateChange(@NonNull GeckoSession session, @NonNull GeckoSession.SessionState sessionState)
      The browser session state has changed. This can happen in response to navigation, scrolling, or form data changes; the session state passed includes the most up to date information on all of these.
      Parameters:
      session - GeckoSession that initiated the callback.
      sessionState - SessionState representing the latest browser state.