AutocompleteResult

@objcMembers
public class AutocompleteResult

Result returned by the autocomplete engine.

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

  • Creates a result with given segments.

    Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    required public init(segments: [AutocompleteSegment])

    Parameters

    segments

    segments that match the autocomplete request.

Public

  • Describes recognized entities of the result.

    Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public let segments: [AutocompleteSegment]