@Beta(2020, 12) class Builder
Builder used to create an instance of AutocompleteSpecification. Once constructed, the user cannot change the field values.
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.
Builder(term: String, language: String)
Builder used to create an instance of AutocompleteSpecification. Once constructed, the user cannot change the field values. |
fun build(): AutocompleteSpecification
Constructs a new AutocompleteSpecification. |
|
fun locationDescriptor(locationDescriptor: AutocompleteLocationDescriptor): AutocompleteSpecification.Builder
Description of the location used in the Autocomplete search. |
|
fun searchEngineDescriptor(autocompleteSearchEngineDescriptor: AutocompleteSearchEngineDescriptor): AutocompleteSpecification.Builder
Describes the configuration of the Autocomplete search engine. |