android-components / mozilla.components.browser.session / Session / Observer


interface Observer (source)

Interface to be implemented by classes that want to observe a session.


Name Summary
onAppPermissionRequested open fun onAppPermissionRequested(session: Session, permissionRequest: PermissionRequest): Boolean
onContentPermissionRequested open fun onContentPermissionRequested(session: Session, permissionRequest: PermissionRequest): Boolean
onCrashStateChanged open fun onCrashStateChanged(session: Session, crashed: Boolean): Unit
onCustomTabConfigChanged open fun onCustomTabConfigChanged(session: Session, customTabConfig: CustomTabConfig?): Unit
onDesktopModeChanged open fun onDesktopModeChanged(session: Session, enabled: Boolean): Unit
onFindResult open fun onFindResult(session: Session, result: FindResult): Unit
onFullScreenChanged open fun onFullScreenChanged(session: Session, enabled: Boolean): Unit
onLaunchIntentRequest open fun onLaunchIntentRequest(session: Session, url: String, appIntent: <ERROR CLASS>?): Unit
onLoadRequest open fun onLoadRequest(session: Session, url: String, triggeredByRedirect: Boolean, triggeredByWebContent: Boolean): Unit
onLoadingStateChanged open fun onLoadingStateChanged(session: Session, loading: Boolean): Unit
onLongPress open fun onLongPress(session: Session, hitResult: HitResult): Boolean
onNavigationStateChanged open fun onNavigationStateChanged(session: Session, canGoBack: Boolean, canGoForward: Boolean): Unit
onProgress open fun onProgress(session: Session, progress: Int): Unit
onReaderModeChanged open fun onReaderModeChanged(session: Session, enabled: Boolean): Unit
onReaderableStateUpdated open fun onReaderableStateUpdated(session: Session, readerable: Boolean): Unit
onRecordingDevicesChanged open fun onRecordingDevicesChanged(session: Session, devices: List<RecordingDevice>): Unit
onSearch open fun onSearch(session: Session, searchTerms: String): Unit
onSecurityChanged open fun onSecurityChanged(session: Session, securityInfo: SecurityInfo): Unit
onThumbnailChanged open fun onThumbnailChanged(session: Session, bitmap: <ERROR CLASS>?): Unit
onTitleChanged open fun onTitleChanged(session: Session, title: String): Unit
onTrackerBlocked open fun onTrackerBlocked(session: Session, tracker: Tracker, all: List<Tracker>): Unit
onTrackerBlockingEnabledChanged open fun onTrackerBlockingEnabledChanged(session: Session, blockingEnabled: Boolean): Unit
onTrackerLoaded open fun onTrackerLoaded(session: Session, tracker: Tracker, all: List<Tracker>): Unit
onUrlChanged open fun onUrlChanged(session: Session, url: String): Unit
onWebAppManifestChanged open fun onWebAppManifestChanged(session: Session, manifest: WebAppManifest?): Unit


Name Summary
CustomTabSessionTitleObserver class CustomTabSessionTitleObserver : Observer
Sets the title of the custom tab toolbar based on the session title and URL.
ManifestUpdateFeature class ManifestUpdateFeature : Observer, LifecycleAwareFeature
Feature used to update the existing web app manifest and web app shortcut.
Observer interface Observer : Observer
SelectionAwareSessionObserver abstract class SelectionAwareSessionObserver : Observer, Observer
This class is a combination of Session.Observer and SessionManager.Observer. It provides functionality to observe changes to a specified or selected session, and can automatically take care of switching over the observer in case a different session gets selected (see observeFixed and observeSelected).
WebAppHideToolbarFeature class WebAppHideToolbarFeature : Observer, LifecycleAwareFeature
Hides a custom tab toolbar for Progressive Web Apps and Trusted Web Activities.