Package-level declarations

Provides data classes that represent and configure search results or display smart suggestions related to user input in the Search UI.

Types

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
class PlaceDetails

Information about the retrieved place.

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
data class SearchApiParameters(val limit: Int = 10, val typeAhead: Boolean = true, val position: GeoPoint? = null, val radius: Float? = null, val language: Locale? = null) : Parcelable

Parameters used to configure the Search API query.

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
data class SearchProperties(val searchApiKey: String, val searchApiParameters: SearchApiParameters = SearchApiParameters(), val commands: List<String> = listOf(), val units: UnitSystem = getDefaultUnitSystem()) : Parcelable

Describes the properties used in com.tomtom.sdk.search.ui.SearchView and com.tomtom.sdk.search.ui.SearchFragment to obtain PlaceDetails elements for a given input query.

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
data class SearchSuggestion(val imageResId: Int, val title: String, val subtitle: String, val query: String)

Search suggestion data.