SearchViewConfigurationBuilder

public class SearchViewConfigurationBuilder

SearchViewConfigurationBuilder creates an SearchViewConfiguration object which can be used to configure a SearchView instance.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Specifies a provider of the search suggestions.

    Declaration

    Swift

    public func withSearchSuggestionsProvider(_ searchSuggestionsProvider: SearchSuggestionsProviderProtocol)
        -> SearchViewConfigurationBuilder
  • Specifies initial text that should be inserted into the search field.

    Declaration

    Swift

    public func withText(_ prefilledText: String?) -> SearchViewConfigurationBuilder
  • Specifies the theme used to style the search view.

    Declaration

    Swift

    public func withTheme(_ theme: SearchingThemeProtocol) -> SearchViewConfigurationBuilder
  • Specifies a distance unit for configuration

    Declaration

    Swift

    public func withDistanceUnits(_ distanceUnits: UnitsSystem) -> SearchViewConfigurationBuilder

    Parameters

    distanceUnits

    a distance unit to use for search results

    Return Value

    a builder with updated distance units

  • Builds the configuration based on the provided information.

    Declaration

    Swift

    public func build() -> SearchViewConfiguration