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 StructuredSearchState instance with the given parameters.

    Refrain from instantiating StructuredSearchState directly, use StructuredSearchSession.fetchStructuredSearchState or StructuredSearchSession.selectCandidate to obtain an instance of StructuredSearchState instead.

    Declaration

    Swift

    @available(*, deprecated, message: "This will be removed from future releases after 2026-07-15.")
    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.