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
DefaultSelectTabUseCase class DefaultSelectTabUseCase : SelectTabUseCase
RemoveAllTabsOfTypeUseCase class RemoveAllTabsOfTypeUseCase
RemoveAllTabsUseCase class RemoveAllTabsUseCase
RemoveTabUseCase class RemoveTabUseCase
SelectTabUseCase interface SelectTabUseCase
Contract for use cases that select a tab.


Name Summary
<init> TabsUseCases(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.