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

SearchResult

data class SearchResult (source)

Encapsulates a set of properties which define a result of querying history storage.

Constructors

Name Summary
<init> SearchResult(id: String, url: String, score: Int, title: String? = null)
Encapsulates a set of properties which define a result of querying history storage.

Properties

Name Summary
id val id: String
A permanent identifier which might be used for caching or at the UI layer.
score val score: Int
An unbounded, nonlinear score (larger is more relevant) which is used to rank this SearchResult against others.
title val title: String?
An optional title of the page.
url val url: String
A URL of the page.

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.