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.
-
Creates a new
StructuredSearchStateinstance with the given parameters.Declaration
Swift
@available(*, deprecated, message: "This API is deprecated and will be removed with the next major release.") public init(selectedCandidates: [StructuredSearchCandidate], availableCandidates: [StructuredSearchCandidate])Parameters
selectedCandidatesdefines the previous search choices in the current search session.
availableCandidatesdefines possible options to proceed with the search.
-
The previous selected list of
StructuredSearchCandidateand the clients might use this to display selection on each address level.Declaration
Swift
public let selectedCandidates: [StructuredSearchCandidate] -
The available list of
StructuredSearchCandidatefor the address level. The clients are expected to select a candidate viaStructuredSearchSession.selectCandidateto proceed to next step.Declaration
Swift
public let availableCandidates: [StructuredSearchCandidate]
TomTom SDK for iOS (0.53.1)
StructuredSearchState