AutocompleteInputQuery

public class AutocompleteInputQuery

Represents how the user’s input query matches the provided autocomplete result.

This class provides information about the input query that triggered the autocomplete search. Such information includes 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.

Lifecycle

  • 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

    offset

    The starting character offset of the input query’s substring that matches a segment.

    length

    The length of the matched substring in the input query.

Public

  • 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