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

Constructors

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