Package org.mozilla.geckoview
Interface GeckoSession.ProgressDelegate
- Enclosing class:
- GeckoSession
public static interface GeckoSession.ProgressDelegate
Interface for handling progress updates and security information during content loading.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classClass representing security information for a site. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidonPageStart(GeckoSession session, String url) A View has started loading content from the network.default voidonPageStop(GeckoSession session, boolean success) A View has finished loading content from the network.default voidonProgressChange(GeckoSession session, int progress) Page loading has progressed.default voidonSecurityChange(GeckoSession session, GeckoSession.ProgressDelegate.SecurityInformation securityInfo) The security status has been updated.default voidonSessionStateChange(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.
-