Package org.mozilla.geckoview
Class GeckoSession.NavigationDelegate.LoadRequest
Object
org.mozilla.geckoview.GeckoSession.NavigationDelegate.LoadRequest
- Enclosing interface:
- GeckoSession.NavigationDelegate
Load request details.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanTrue if there was an active user gesture when the load was requested.final booleanThis load request was initiated by a direct navigation from the application.final booleanTrue if and only if the request was triggered by an HTTP redirect.final intThe target where the window has requested to open.final StringThe URI of the origin page that triggered the load request.final StringThe URI to be loaded. -
Constructor Summary
Constructors -
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
onLoadRequestwill 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