Package org.mozilla.geckoview
Class GeckoSession.NavigationDelegate.LoadRequest
Object
org.mozilla.geckoview.GeckoSession.NavigationDelegate.LoadRequest
- Enclosing interface:
- GeckoSession.NavigationDelegate
Load request details.
-
Field Summary
Modifier and TypeFieldDescriptionfinal 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
-
Method Summary
-
Field Details
-
uri
The URI to be loaded. -
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 targetThe target where the window has requested to open. One ofTARGET_WINDOW_*
. -
isRedirect
public final boolean isRedirectTrue 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" andisRedirect = false
, then with uri "b" andisRedirect = true
. -
hasUserGesture
public final boolean hasUserGestureTrue if there was an active user gesture when the load was requested.
-
-
Constructor Details
-
LoadRequest
protected LoadRequest()Empty constructor for tests.
-
-
Method Details