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

# HistoryStorage

`interface HistoryStorage` (source)

An interface which defines read/write methods for history data.

### Functions

getVisited | `abstract fun getVisited(uris: List<String>, callback: (List<Boolean>) -> Unit): Unit` Maps a list of page URIs to a list of booleans indicating if each URI was visited. `abstract fun getVisited(callback: (List<String>) -> Unit): Unit` Retrieves a list of all visited pages.
recordObservation | `abstract fun recordObservation(uri: String, observation: PageObservation): Unit` Records an observation about a page.
recordVisit | `abstract fun recordVisit(uri: String, visitType: VisitType): Unit` Records a visit to a page.

### Inheritors

InMemoryHistoryStorage | `class InMemoryHistoryStorage : HistoryStorage` An in-memory implementation of mozilla.components.concept.storage.HistoryStorage.