public static interface GeckoSession.ProgressDelegate
Modifier and Type | Interface and Description |
---|---|
static class |
GeckoSession.ProgressDelegate.SecurityInformation
Class representing security information for a site.
|
Modifier and Type | Method and Description |
---|---|
default void |
onPageStart(GeckoSession session,
String url)
A View has started loading content from the network.
|
default void |
onPageStop(GeckoSession session,
boolean success)
A View has finished loading content from the network.
|
default void |
onProgressChange(GeckoSession session,
int progress)
Page loading has progressed.
|
default void |
onSecurityChange(GeckoSession session,
GeckoSession.ProgressDelegate.SecurityInformation securityInfo)
The security status has been updated.
|
default void |
onSessionStateChange(GeckoSession session,
GeckoSession.SessionState sessionState)
The browser session state has changed.
|
@UiThread default void onPageStart(@NonNull GeckoSession session, @NonNull String url)
session
- GeckoSession that initiated the callback.url
- The resource being loaded.@UiThread default void onPageStop(@NonNull GeckoSession session, boolean success)
session
- GeckoSession that initiated the callback.success
- Whether the page loaded successfully or an error occurred.@UiThread default void onProgressChange(@NonNull GeckoSession session, int progress)
session
- GeckoSession that initiated the callback.progress
- Current page load progress value [0, 100].@UiThread default void onSecurityChange(@NonNull GeckoSession session, @NonNull GeckoSession.ProgressDelegate.SecurityInformation securityInfo)
session
- GeckoSession that initiated the callback.securityInfo
- The new security information.@UiThread default void onSessionStateChange(@NonNull GeckoSession session, @NonNull GeckoSession.SessionState sessionState)
session
- GeckoSession that initiated the callback.sessionState
- SessionState representing the latest browser state.