StructuredSearchState

data class StructuredSearchState(val selectedCandidates: List<StructuredSearchCandidate>, val availableCandidates: List<StructuredSearchCandidate>)

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

Constructors

Link copied to clipboard
constructor(selectedCandidates: List<StructuredSearchCandidate>, availableCandidates: List<StructuredSearchCandidate>)

Properties

Link copied to clipboard

The available list of StructuredSearchCandidate for the address level and the clients are expected to select a candidate via StructuredSearchSession.selectCandidate to proceed to next step.

Link copied to clipboard

The previous selected list of StructuredSearchCandidate and the clients might use this to display selection on each address level.