AutocompleteInputQuery
public class AutocompleteInputQuery
Represents how the user’s input query matches provided autocomplete result.
This class provides information about the input query that triggered the autocomplete search, including the starting offset and length of the matched substring in the original text.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates an instance of
AutocompleteInputQuery.Important
This is a Public Preview API. It may be changed or removed at any time.
Declaration
Swift
required public init(offset: Int, length: Int)Parameters
offsetThe starting character offset of the input query’s substring that matches a segment.
lengthThe length of the matched substring in the input query.
-
The starting character offset of the input query’s substring that matches a segment.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public let offset: Int -
The length of the matched substring in the input query.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public let length: Int
AutocompleteInputQuery Class Reference