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

Builder

@PublicPreview("2021.06") class Builder

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

Constructors

<init>

Builder()

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

Functions

build

fun build(): AutocompleteSearchEngineDescriptor

Constructs a new AutocompleteSpecification.

limit

fun limit(limit: Int): AutocompleteSearchEngineDescriptor.Builder

The maximum number of autocomplete suggestions that will be returned. Default value is 5, maximum value is 10.

resultTypes

fun resultTypes(resultTypes: List<ResultType>): AutocompleteSearchEngineDescriptor.Builder

Restricts the result space based on their segment types (e.g., "category", "brand", or "category,brand"). A result is only included if at least one segment is of any of the indicated types.