Package-level declarations

Types

Link copied to clipboard
data class BookmarkData(var guid: Guid, var parentGuid: Guid, var position: UInt, var dateAdded: PlacesTimestamp, var lastModified: PlacesTimestamp, var url: Url, var title: String?)
Link copied to clipboard
data class BookmarkFolder(var guid: Guid, var dateAdded: PlacesTimestamp, var lastModified: PlacesTimestamp, var parentGuid: Guid?, var position: UInt, var title: String?, var childGuids: List<Guid>?, var childNodes: List<BookmarkItem>?)
Link copied to clipboard
sealed class BookmarkItem
Link copied to clipboard
sealed class BookmarkPosition

Where the item should be placed.

Link copied to clipboard
data class BookmarkSeparator(var guid: Guid, var dateAdded: PlacesTimestamp, var lastModified: PlacesTimestamp, var parentGuid: Guid, var position: UInt)
Link copied to clipboard
data class BookmarkUpdateInfo(var guid: Guid, var title: String?, var url: String?, var parentGuid: Guid?, var position: UInt?)
Link copied to clipboard
Link copied to clipboard
interface Disposable
Link copied to clipboard
Link copied to clipboard
data class Dummy(var md: List<HistoryMetadata>?)

Exists just to convince uniffi to generate liftSequence* helpers!

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object FfiConverterTypePlacesApi : FfiConverter<PlacesApi, <Error class: unknown class>>
Link copied to clipboard
object FfiConverterTypePlacesConnection : FfiConverter<PlacesConnection, <Error class: unknown class>>
Link copied to clipboard
object FfiConverterTypeSqlInterruptHandle : FfiConverter<SqlInterruptHandle, <Error class: unknown class>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class ForeignBytes
Link copied to clipboard

Frecency threshold options for fetching top frecent sites. Requests a page that was visited with a frecency score greater or equal to the value associated with the enums

Link copied to clipboard
typealias Guid = String

Typealias from the type name used in the UDL file to the builtin type. This is needed because the UDL type name is used in function/method signatures. It's also what we have an external type that references a custom type.

Link copied to clipboard
data class HistoryHighlight(var score: Double, var placeId: Int, var url: String, var title: String?, var previewImageUrl: String?)
Link copied to clipboard
data class HistoryHighlightWeights(var viewTime: Double, var frequency: Double)
Link copied to clipboard
data class HistoryMetadata(var url: String, var title: String?, var previewImageUrl: String?, var createdAt: Long, var updatedAt: Long, var totalViewTime: Int, var searchTerm: String?, var documentType: DocumentType, var referrerUrl: String?)

This is what is returned.

Link copied to clipboard
data class HistoryMetadataObservation(var url: String, var referrerUrl: String? = null, var searchTerm: String? = null, var viewTime: Int? = null, var documentType: DocumentType? = null, var title: String? = null)

This is used as an "input" to the api.

Link copied to clipboard
data class HistoryMigrationResult(var numTotal: UInt, var numSucceeded: UInt, var numFailed: UInt, var totalDuration: ULong)
Link copied to clipboard
data class HistoryVisitInfo(var url: Url, var title: String?, var timestamp: PlacesTimestamp, var visitType: VisitType, var isHidden: Boolean, var previewImageUrl: Url?, var isRemote: Boolean)
Link copied to clipboard
data class HistoryVisitInfosWithBound(var infos: List<HistoryVisitInfo>, var bound: Long, var offset: Long)
Link copied to clipboard
data class InsertableBookmark(var guid: Guid? = null, var parentGuid: Guid, var position: BookmarkPosition, var dateAdded: PlacesTimestamp? = null, var lastModified: PlacesTimestamp? = null, var url: Url, var title: String? = null)
Link copied to clipboard
data class InsertableBookmarkFolder(var guid: Guid? = null, var parentGuid: Guid, var position: BookmarkPosition, var dateAdded: PlacesTimestamp? = null, var lastModified: PlacesTimestamp? = null, var title: String? = null, var children: List<InsertableBookmarkItem>)
Link copied to clipboard
Link copied to clipboard
data class InsertableBookmarkSeparator(var guid: Guid? = null, var parentGuid: Guid, var position: BookmarkPosition, var dateAdded: PlacesTimestamp? = null, var lastModified: PlacesTimestamp? = null)
Link copied to clipboard
Link copied to clipboard
object NoPointer

Used to instantiate an interface without an actual pointer, for fakes in tests, mostly.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
typealias PlacesTimestamp = Long

Typealias from the type name used in the UDL file to the builtin type. This is needed because the UDL type name is used in function/method signatures. It's also what we have an external type that references a custom type.

Link copied to clipboard
data class RunMaintenanceMetrics(var prunedVisits: Boolean, var dbSizeBefore: UInt, var dbSizeAfter: UInt)
Link copied to clipboard
open class RustBuffer
Link copied to clipboard

The equivalent of the *mut RustBuffer type. Required for callbacks taking in an out pointer.

Link copied to clipboard
data class SearchResult(var url: Url, var title: String, var frecency: Long)
Link copied to clipboard
Link copied to clipboard
data class TopFrecentSiteInfo(var url: Url, var title: String?)
Link copied to clipboard
interface UniffiCleaner
Link copied to clipboard
typealias Url = String

Typealias from the type name used in the UDL file to the builtin type. This is needed because the UDL type name is used in function/method signatures. It's also what we have an external type that references a custom type.

Link copied to clipboard
data class VisitObservation(var url: Url, var title: String? = null, var visitType: VisitType?, var isError: Boolean? = null, var isRedirectSource: Boolean? = null, var isPermanentRedirectSource: Boolean? = null, var at: PlacesTimestamp? = null, var referrer: Url? = null, var isRemote: Boolean? = null, var previewImageUrl: Url? = null)

Encapsulates either information about a visit to a page, or meta information about the page, or both. Use VisitType.UPDATE_PLACE to differentiate an update from a visit.

Link copied to clipboard

Typealias from the type name used in the UDL file to the builtin type. This is needed because the UDL type name is used in function/method signatures. It's also what we have an external type that references a custom type.

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
inline fun <T : Disposable?, R> T.use(block: (T) -> R): R