android-components / mozilla.components.support.base.feature / LifecycleAwareFeature

LifecycleAwareFeature

interface LifecycleAwareFeature : LifecycleObserver (source)

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

Functions

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.

Inheritors

Name Summary
AppLinksFeature class AppLinksFeature : LifecycleAwareFeature
This feature implements use cases for detecting and handling redirects to external apps. The user is asked to confirm her intention before leaving the app. These include the Android Intents, custom schemes and support for Intent.CATEGORY_BROWSABLE http(s) URLs.
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, BackHandler
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, BackHandler
Feature implementation that will keep a FindInPageView in sync with a bound SessionState.
FullScreenFeature open class FullScreenFeature : SelectionAwareSessionObserver, LifecycleAwareFeature, BackHandler
Feature implementation for handling fullscreen mode (exiting and back button presses).
FxaWebChannelFeature class FxaWebChannelFeature : SelectionAwareSessionObserver, LifecycleAwareFeature
Feature implementation that provides Firefox Accounts WebChannel support. For more information https://github.com/mozilla/fxa/blob/master/packages/fxa-content-server/docs/relier-communication-protocols/fx-webchannel.md 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.
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, BackHandler, PermissionsFeature
Feature implementation that provides QR scanning functionality via the QrFragment.
ReaderViewFeature class ReaderViewFeature : SelectionAwareSessionObserver, LifecycleAwareFeature, BackHandler
Feature implementation that provides a reader view for the selected session, based on a web extension.
SecureWindowFeature class SecureWindowFeature : LifecycleAwareFeature
Prevents screenshots and screen recordings in private tabs.
SessionFeature class SessionFeature : LifecycleAwareFeature, BackHandler
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.
TabsFeature class TabsFeature : LifecycleAwareFeature
Feature implementation for connecting a tabs tray implementation with the session module.
ThumbnailsFeature class ThumbnailsFeature : 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 Session.thumbnail property.
ToolbarFeature class ToolbarFeature : LifecycleAwareFeature, BackHandler
Feature implementation for connecting a toolbar implementation with the session module.
WebAppHideToolbarFeature class WebAppHideToolbarFeature : Observer, LifecycleAwareFeature
Hides a custom tab toolbar for Progressive Web Apps and Trusted Web Activities.
WindowFeature class WindowFeature : LifecycleAwareFeature
Feature implementation for handling window requests by opening and closing tabs.