StructuredSearchState

public struct StructuredSearchState : Equatable

Represents current state of StructuredSearchSession during the structured (hierarchical) search. StructuredSearchState is provided by the search session until the search doesn’t reach the destination.

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

  • Creates a new StructuredSearchState instance with the given parameters.

    Declaration

    Swift

    public init(selectedCandidates: [StructuredSearchCandidate], availableCandidates: [StructuredSearchCandidate])

    Parameters

    selectedCandidates

    defines the previous search choices in the current search session.

    availableCandidates

    defines possible options to proceed with the search.

    Important

    shouldn’t be used outside the TomTom SDK to supply structured search input.

Public