sdk-search / com.tomtom.online.sdk.search.autocomplete / AutocompleteSpecification / Builder

Builder

@Beta(2020, 12) class Builder

Builder used to create an instance of AutocompleteSpecification. Once constructed, the user cannot change the field values.

Parameters

term - The searched term.

language - Language in which autocomplete results should be returned. Should be one of the TomTom supported IETF language tags. See https://developer.tomtom.com/search-api/search-api/supported-languages for more details.

Constructors

<init>

Builder(term: String, language: String)

Builder used to create an instance of AutocompleteSpecification. Once constructed, the user cannot change the field values.

Functions

build

fun build(): AutocompleteSpecification

Constructs a new AutocompleteSpecification.

locationDescriptor

fun locationDescriptor(locationDescriptor: AutocompleteLocationDescriptor): AutocompleteSpecification.Builder

Description of the location used in the Autocomplete search.

searchEngineDescriptor

fun searchEngineDescriptor(autocompleteSearchEngineDescriptor: AutocompleteSearchEngineDescriptor): AutocompleteSpecification.Builder

Describes the configuration of the Autocomplete search engine.