PlacesConnectionInterface

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun acceptResult(searchString: String, url: String)

url is a string and not a URL because accept_result handles malformed urls

Link copied to clipboard
abstract fun applyObservation(visit: VisitObservation)
Link copied to clipboard
abstract fun bookmarksCountBookmarksInTrees(folderGuids: List<Guid>): UInt

Counts the number of bookmarks in the bookmark tree under the specified GUID. Does not count the passed item, so an empty folder will return zero, as will a non-existing GUID or the guid of a non-folder item. Counts only bookmark items - ie, sub-folders and separators are not counted.

Link copied to clipboard
abstract fun bookmarksDelete(id: Guid): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun bookmarksGetByGuid(guid: Guid, getDirectChildren: Boolean): BookmarkItem?
Link copied to clipboard
abstract fun bookmarksGetRecent(limit: Int): List<BookmarkItem>
Link copied to clipboard
abstract fun bookmarksGetTree(itemGuid: Guid): BookmarkItem?
Link copied to clipboard
abstract fun bookmarksGetUrlForKeyword(keyword: String): Url?
Link copied to clipboard
Link copied to clipboard
abstract fun bookmarksSearch(query: String, limit: Int): List<BookmarkItem>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun deleteVisit(url: String, timestamp: PlacesTimestamp)
Link copied to clipboard
Link copied to clipboard
abstract fun deleteVisitsFor(url: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getTopFrecentSiteInfos(numItems: Int, thresholdOption: FrecencyThresholdOption): List<TopFrecentSiteInfo>
Link copied to clipboard
abstract fun getVisitCount(excludeTypes: VisitTransitionSet): Long
Link copied to clipboard
abstract fun getVisited(urls: List<String>): List<Boolean>
Link copied to clipboard
abstract fun getVisitedUrlsInRange(start: PlacesTimestamp, end: PlacesTimestamp, includeRemote: Boolean): List<Url>
Link copied to clipboard
abstract fun getVisitInfos(startDate: PlacesTimestamp, endDate: PlacesTimestamp, excludeTypes: VisitTransitionSet): List<HistoryVisitInfo>
Link copied to clipboard
abstract fun getVisitPage(offset: Long, count: Long, excludeTypes: VisitTransitionSet): List<HistoryVisitInfo>
Link copied to clipboard
abstract fun getVisitPageWithBound(bound: Long, offset: Long, count: Long, excludeTypes: VisitTransitionSet): HistoryVisitInfosWithBound
Link copied to clipboard
abstract fun matchUrl(query: String): Url?
Link copied to clipboard
abstract fun metadataDelete(url: Url, referrerUrl: Url?, searchTerm: String?)
Link copied to clipboard
abstract fun metadataDeleteOlderThan(olderThan: PlacesTimestamp)
Link copied to clipboard
Link copied to clipboard
abstract fun placesHistoryImportFromIos(dbPath: String, lastSyncTimestamp: Long): HistoryMigrationResult
Link copied to clipboard
abstract fun queryAutocomplete(search: String, limit: Int): List<SearchResult>
Link copied to clipboard
abstract fun queryHistoryMetadata(query: String, limit: Int): List<HistoryMetadata>
Link copied to clipboard

Run maintenance on the places DB (checkpoint step)

Link copied to clipboard
abstract fun runMaintenanceOptimize()

Run maintenance on the places DB (optimize step)

Link copied to clipboard
abstract fun runMaintenancePrune(dbSizeLimit: UInt, pruneLimit: UInt): RunMaintenanceMetrics

Run maintenance on the places DB (prune step)

Link copied to clipboard
abstract fun runMaintenanceVacuum()

Run maintenance on the places DB (vacuum step)