Package org.mozilla.geckoview
Interface GeckoSession.ProgressDelegate
- Enclosing class:
- GeckoSession
public static interface GeckoSession.ProgressDelegate
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Class representing security information for a site. -
Method Summary
Modifier and TypeMethodDescriptiondefault 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.
-
Method Details
-
onPageStart
A View has started loading content from the network.- Parameters:
session
- GeckoSession that initiated the callback.url
- The resource being loaded.
-
onPageStop
A View has finished loading content from the network.- Parameters:
session
- GeckoSession that initiated the callback.success
- Whether the page loaded successfully or an error occurred.
-
onProgressChange
Page loading has progressed.- Parameters:
session
- GeckoSession that initiated the callback.progress
- Current page load progress value [0, 100].
-
onSecurityChange
@UiThread default void onSecurityChange(@NonNull GeckoSession session, @NonNull GeckoSession.ProgressDelegate.SecurityInformation securityInfo) The security status has been updated.- Parameters:
session
- GeckoSession that initiated the callback.securityInfo
- The new security information.
-
onSessionStateChange
@UiThread default void onSessionStateChange(@NonNull GeckoSession session, @NonNull GeckoSession.SessionState sessionState) The browser session state has changed. This can happen in response to navigation, scrolling, or form data changes; the session state passed includes the most up to date information on all of these.- Parameters:
session
- GeckoSession that initiated the callback.sessionState
- SessionState representing the latest browser state.
-