android-components / mozilla.components.feature.toolbar / ToolbarFeature

# ToolbarFeature

`class ToolbarFeature` (source)

Feature implementation for connecting a toolbar implementation with the session module.

### Constructors

<init> | `ToolbarFeature(toolbar: Toolbar, sessionManager: SessionManager, loadUrlUseCase: LoadUrlUseCase, searchUseCase: SearchUseCase? = null, sessionId: String? = null)` Feature implementation for connecting a toolbar implementation with the session module.

### Properties

toolbar | `val toolbar: Toolbar`

### Functions

handleBackPressed | `fun handleBackPressed(): Boolean` Handler for back pressed events in activities that use this feature.
start | `fun start(): Unit` Start feature: App is in the foreground.
stop | `fun stop(): Unit` Stop feature: App is in the background.