android-components / mozilla.components.feature.tabs / TabsUseCases

TabsUseCases

class TabsUseCases (source)

Contains use cases related to the tabs feature.

Types

Name Summary
AddNewPrivateTabUseCase class AddNewPrivateTabUseCase : LoadUrlUseCase
AddNewTabUseCase class AddNewTabUseCase : LoadUrlUseCase
DefaultRemoveTabUseCase class DefaultRemoveTabUseCase : RemoveTabUseCase
Default implementation of RemoveTabUseCase, interacting with SessionManager.
DefaultSelectTabUseCase class DefaultSelectTabUseCase : SelectTabUseCase
RemoveAllTabsOfTypeUseCase class RemoveAllTabsOfTypeUseCase
RemoveAllTabsUseCase class RemoveAllTabsUseCase
RemoveTabUseCase interface RemoveTabUseCase
Contract for use cases that remove a tab.
SelectTabUseCase interface SelectTabUseCase
Contract for use cases that select a tab.

Constructors

Name Summary
<init> TabsUseCases(store: BrowserStore, sessionManager: SessionManager)
Contains use cases related to the tabs feature.

Properties

Name Summary
addPrivateTab val addPrivateTab: AddNewPrivateTabUseCase
addTab val addTab: AddNewTabUseCase
removeAllTabs val removeAllTabs: RemoveAllTabsUseCase
removeAllTabsOfType val removeAllTabsOfType: RemoveAllTabsOfTypeUseCase
removeTab val removeTab: RemoveTabUseCase
selectTab val selectTab: SelectTabUseCase

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.