android-components / mozilla.components.feature.tabs.tabstray / TabsFeature

TabsFeature

class TabsFeature : LifecycleAwareFeature (source)

Feature implementation for connecting a tabs tray implementation with the session module.

Parameters

defaultTabsFilter - A tab filter that is used for the initial presenting of tabs that will be used by TabsFeature.filterTabs by default as well.

Constructors

Name Summary
<init> TabsFeature(tabsTray: TabsTray, store: BrowserStore, tabsUseCases: TabsUseCases, defaultTabsFilter: (TabSessionState) -> Boolean = { true }, closeTabsTray: () -> Unit)
Feature implementation for connecting a tabs tray implementation with the session module.

Functions

Name Summary
filterTabs fun filterTabs(tabsFilter: (TabSessionState) -> Boolean = defaultTabsFilter): Unit
Filter the list of tabs using tabsFilter.
start fun start(): Unit
stop fun stop(): Unit

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.