public static class GeckoSession.NavigationDelegate.LoadRequest extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
hasUserGesture
True if there was an active user gesture when the load was requested.
|
boolean |
isDirectNavigation
This load request was initiated by a direct navigation from the
application.
|
boolean |
isRedirect
True if and only if the request was triggered by an HTTP redirect.
|
int |
target
The target where the window has requested to open.
|
String |
triggerUri
The URI of the origin page that triggered the load request.
|
String |
uri
The URI to be loaded.
|
Modifier | Constructor and Description |
---|---|
protected |
LoadRequest()
Empty constructor for tests.
|
@NonNull public final String uri
@Nullable public final String triggerUri
public final int target
TARGET_WINDOW_*
.public final boolean isRedirect
onLoadRequest
will be called twice, first with uri "a" and
isRedirect = false
, then with uri "b" and
isRedirect = true
.public final boolean hasUserGesture
public final boolean isDirectNavigation
GeckoSession.load(org.mozilla.geckoview.GeckoSession.Loader)
.