android-components / mozilla.components.concept.storage / Storage

Storage

interface Storage (source)

An interface which provides generic operations for storing browser data like history and bookmarks.

Functions

Name Summary
cleanup abstract fun cleanup(): Unit
Cleans up background work and database connections
runMaintenance abstract suspend fun runMaintenance(): Unit
Runs internal database maintenance tasks

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.

Inheritors

Name Summary
BookmarksStorage interface BookmarksStorage : Storage
An interface which defines read/write operations for bookmarks data.
HistoryStorage interface HistoryStorage : Storage
An interface which defines read/write methods for history data.
PlacesStorage abstract class PlacesStorage : Storage, SyncableStore
A base class for concrete implementations of PlacesStorages
RemoteTabsStorage open class RemoteTabsStorage : Storage, SyncableStore
An interface which defines read/write methods for remote tabs data.