android-components / / LifecycleAwareFeature


interface LifecycleAwareFeature : LifecycleObserver (source)

An interface for all entry points to feature components to implement in order to make them lifecycle aware.


Name Summary
start abstract fun start(): Unit
stop abstract fun stop(): Unit

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.


Name Summary
AppLinksFeature class AppLinksFeature : LifecycleAwareFeature
This feature implements observer for handling redirects to external apps. The users are asked to confirm their intention before leaving the app if in private session. These include the Android Intents, custom schemes and support for Intent.CATEGORY_BROWSABLE http(s) URLs.
BrowserThumbnails class BrowserThumbnails : LifecycleAwareFeature
Feature implementation for automatically taking thumbnails of sites. The feature will take a screenshot when the page finishes loading, and will add it to the ContentState.thumbnail property.
ContextMenuFeature class ContextMenuFeature : LifecycleAwareFeature
Feature for displaying a context menu after long-pressing web content.
CoordinateScrollingFeature class CoordinateScrollingFeature : SelectionAwareSessionObserver, LifecycleAwareFeature
Feature implementation for connecting an EngineView with any View that you want to coordinate scrolling behavior with.
CustomTabWindowFeature class CustomTabWindowFeature : LifecycleAwareFeature
Feature implementation for handling window requests by opening custom tabs.
CustomTabsToolbarFeature class CustomTabsToolbarFeature : LifecycleAwareFeature, UserInteractionHandler
Initializes and resets the Toolbar for a Custom Tab based on the CustomTabConfig.
DownloadsFeature class DownloadsFeature : LifecycleAwareFeature, PermissionsFeature
Feature implementation to provide download functionality for the selected session. The feature will subscribe to the selected session and listen for downloads.
FindInPageFeature class FindInPageFeature : LifecycleAwareFeature, UserInteractionHandler
Feature implementation that will keep a FindInPageView in sync with a bound SessionState.
FullScreenFeature open class FullScreenFeature : SelectionAwareSessionObserver, LifecycleAwareFeature, UserInteractionHandler
Feature implementation for handling fullscreen mode (exiting and back button presses).
FxaWebChannelFeature class FxaWebChannelFeature : LifecycleAwareFeature
Feature implementation that provides Firefox Accounts WebChannel support. For more information This feature uses a web extension to communicate with FxA Web Content.
ManifestUpdateFeature class ManifestUpdateFeature : Observer, LifecycleAwareFeature
Feature used to update the existing web app manifest and web app shortcut.
MediaFullscreenOrientationFeature class MediaFullscreenOrientationFeature : LifecycleAwareFeature
Feature that will auto-rotate the device to the correct orientation for the media aspect ratio.
P2PFeature class P2PFeature : SelectionAwareSessionObserver, LifecycleAwareFeature, PermissionsFeature
Feature implementation for peer-to-peer communication between browsers.
PrivateNotificationFeature class PrivateNotificationFeature<T : AbstractPrivateNotificationService> : LifecycleAwareFeature
Starts up a AbstractPrivateNotificationService once a private tab is opened.
PromptFeature class PromptFeature : LifecycleAwareFeature, PermissionsFeature, Prompter
Feature for displaying native dialogs for html elements like: input type date, file, time, color, option, menu, authentication, confirmation and alerts.
QrFeature class QrFeature : LifecycleAwareFeature, UserInteractionHandler, PermissionsFeature
Feature implementation that provides QR scanning functionality via the QrFragment.
ReaderViewFeature class ReaderViewFeature : LifecycleAwareFeature, UserInteractionHandler
Feature implementation that provides a reader view for the selected session, based on a web extension.
SearchFeature class SearchFeature : LifecycleAwareFeature
Lifecycle aware feature that forwards SearchRequests from the store to performSearch, and then consumes them.
SecureWindowFeature class SecureWindowFeature : LifecycleAwareFeature
Prevents screenshots and screen recordings in private tabs.
SessionFeature class SessionFeature : LifecycleAwareFeature, UserInteractionHandler
Feature implementation for connecting the engine module with the session module.
SitePermissionsFeature class SitePermissionsFeature : LifecycleAwareFeature, PermissionsFeature
This feature will subscribe to the currently selected Session and display a suitable dialogs based on Session.Observer.onAppPermissionRequested or Session.Observer.onContentPermissionRequested events. Once the dialog is closed the PermissionRequest will be consumed.
SwipeRefreshFeature class SwipeRefreshFeature : SelectionAwareSessionObserver, LifecycleAwareFeature, OnChildScrollUpCallback, OnRefreshListener
Feature implementation to add pull to refresh functionality to browsers.
SyncedTabsFeature class SyncedTabsFeature : LifecycleAwareFeature
Feature implementation that will keep a SyncedTabsView notified with other synced device tabs for the Firefox Sync account.
SyncedTabsInteractor interface SyncedTabsInteractor : Listener, LifecycleAwareFeature
An interactor that handles events from SyncedTabsView.Listener.
SyncedTabsPresenter interface SyncedTabsPresenter : LifecycleAwareFeature
A presenter that orchestrates the FxaAccountManager being in the correct state to request remote tabs from the SyncedTabsController or notifies SyncedTabsView.onError otherwise.
TabsFeature class TabsFeature : LifecycleAwareFeature
Feature implementation for connecting a tabs tray implementation with the session module.
ToolbarFeature class ToolbarFeature : LifecycleAwareFeature, UserInteractionHandler
Feature implementation for connecting a toolbar implementation with the session module.
WebAppHideToolbarFeature class WebAppHideToolbarFeature : LifecycleAwareFeature
Hides a custom tab toolbar for Progressive Web Apps and Trusted Web Activities.
WebExtensionPopupFeature class WebExtensionPopupFeature : LifecycleAwareFeature
Feature implementation that opens popups for web extensions browser actions.
WebExtensionToolbarFeature class WebExtensionToolbarFeature : LifecycleAwareFeature
Web extension toolbar implementation that updates the toolbar whenever the state of web extensions changes.
WindowFeature class WindowFeature : LifecycleAwareFeature
Feature implementation for handling window requests by opening and closing tabs.