android-components / mozilla.components.browser.storage.sync / RemoteTabsStorage

RemoteTabsStorage

open class RemoteTabsStorage : Storage, SyncableStore (source)

An interface which defines read/write methods for remote tabs data.

Constructors

Name Summary
<init> RemoteTabsStorage()
An interface which defines read/write methods for remote tabs data.

Functions

Name Summary
cleanup open fun cleanup(): Unit
Cleans up background work and database connections
getAll suspend fun getAll(): Map<SyncClient, List<Tab>>
Get all remote devices tabs.
getHandle open fun getHandle(): Long
This should be removed. See: https://github.com/mozilla/application-services/issues/1877
runMaintenance open suspend fun runMaintenance(): Unit
Runs internal database maintenance tasks
store suspend fun store(tabs: List<Tab>): Unit
Store the locally opened tabs.
sync suspend fun sync(authInfo: SyncAuthInfo, localId: String): SyncStatus
Syncs the remote tabs.

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.