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


class TabsUseCases (source)

Contains use cases related to the tabs feature.


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.


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


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.