AutocompleteSegmentPlainText

public struct AutocompleteSegmentPlainText

Represents the autocomplete result value that doesn’t match any brand or POI Category.

The plainText can be used as a query string in the SearchOptions to continue the search. It is used in AutocompleteSegment to provide plain text-related information in the autocomplete search results. For example the query “Chess” can return an autocomplete search result with the plain text segment and the query “Chess”.

  • Creates a plain text segment for autocomplete results.

    Declaration

    Swift

    public init(plainText: String)

    Parameters

    plainText

    The plain text information to be included in the segment.

  • The plain text included in the segment. It cannot be empty.

    Declaration

    Swift

    public let plainText: String