Class GeckoSession.NavigationDelegate.LoadRequest

Object
org.mozilla.geckoview.GeckoSession.NavigationDelegate.LoadRequest
Enclosing interface:
GeckoSession.NavigationDelegate

public static class GeckoSession.NavigationDelegate.LoadRequest extends Object
Load request details.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final boolean
    True if there was an active user gesture when the load was requested.
    final boolean
    This load request was initiated by a direct navigation from the application.
    final boolean
    True if and only if the request was triggered by an HTTP redirect.
    final int
    The target where the window has requested to open.
    final String
    The URI of the origin page that triggered the load request.
    final String
    The URI to be loaded.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Empty constructor for tests.
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • uri

      @NonNull public final String uri
      The URI to be loaded.
    • triggerUri

      @Nullable public final String triggerUri
      The URI of the origin page that triggered the load request. null for initial loads and loads originating from data: URIs.
    • target

      public final int target
      The target where the window has requested to open. One of TARGET_WINDOW_*.
    • isRedirect

      public final boolean isRedirect
      True if and only if the request was triggered by an HTTP redirect.

      If the user loads URI "a", which redirects to URI "b", then onLoadRequest will be called twice, first with uri "a" and isRedirect = false, then with uri "b" and isRedirect = true.

    • hasUserGesture

      public final boolean hasUserGesture
      True if there was an active user gesture when the load was requested.
    • isDirectNavigation

      public final boolean isDirectNavigation
      This load request was initiated by a direct navigation from the application. E.g. when calling GeckoSession.load(org.mozilla.geckoview.GeckoSession.Loader).
  • Constructor Details

    • LoadRequest

      protected LoadRequest()
      Empty constructor for tests.
  • Method Details