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

UserInteractionHandler

interface UserInteractionHandler (source)

Generic interface for fragments, features and other components that want to handle user interactions such as ‘back’ or ‘home’ button presses.

Functions

Name Summary
onBackPressed abstract fun onBackPressed(): Boolean
Called when this UserInteractionHandler gets the option to handle the user pressing the back key.
onHomePressed open fun onHomePressed(): Boolean
In most cases, when the home button is pressed, we invoke this callback to inform the app that the user is going to leave the app.

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