android-components / mozilla.components.feature.syncedtabs / SyncedTabsFeature

SyncedTabsFeature

@ExperimentalCoroutinesApi class SyncedTabsFeature (source)

A feature that listens to the BrowserStore changes to update the local remote tabs state in RemoteTabsStorage.

Constructors

Name Summary
<init> SyncedTabsFeature(accountManager: FxaAccountManager, store: BrowserStore, tabsStorage: RemoteTabsStorage = RemoteTabsStorage())
A feature that listens to the BrowserStore changes to update the local remote tabs state in RemoteTabsStorage.

Functions

Name Summary
getSyncedTabs suspend fun getSyncedTabs(): Map<Device, List<Tab>>
Get the list of remote tabs.
start fun start(): Unit
Start listening to browser store changes.
stop fun stop(): Unit
Stop listening to browser store changes.

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.