- Enclosing interface:
public static class GeckoSession.NavigationDelegate.LoadRequest extends Object
Load request details.
Field SummaryModifier and TypeFieldDescription
final 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.
protectedEmpty constructor for tests.
uri@NonNull public final String uriThe URI to be loaded.
triggerUri@Nullable public final String triggerUriThe URI of the origin page that triggered the load request. null for initial loads and loads originating from data: URIs.
targetpublic final int targetThe target where the window has requested to open. One of
isRedirectpublic 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" and
isRedirect = false, then with uri "b" and
isRedirect = true.
hasUserGesturepublic final boolean hasUserGestureTrue if there was an active user gesture when the load was requested.
LoadRequestprotected LoadRequest()Empty constructor for tests.