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

BackHandler

interface BackHandler (source)

Generic interface for fragments, features and other components that want to handle ‘back’ button presses.

Functions

Name Summary
onBackPressed abstract fun onBackPressed(): Boolean
Called when this BackHandler gets the option to handle the user pressing the back key.

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
CustomTabsToolbarFeature class CustomTabsToolbarFeature : LifecycleAwareFeature, BackHandler
Initializes and resets the Toolbar for a Custom Tab based on the CustomTabConfig.
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).
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.
SessionFeature class SessionFeature : LifecycleAwareFeature, BackHandler
Feature implementation for connecting the engine module with the session module.
ToolbarFeature class ToolbarFeature : LifecycleAwareFeature, BackHandler
Feature implementation for connecting a toolbar implementation with the session module.