CIOResult

@objc
public class CIOResult : NSObject
extension CIOResult: Identifiable

Struct encapsulating a result with associated metadata and variations

  • The value (or name) of the result

    Declaration

    Swift

    public let value: String
  • Additional data about the result

    Declaration

    Swift

    public let data: CIOResultData
  • Terms associated with the result that was matched on

    Declaration

    Swift

    public let matchedTerms: [String]
  • Variations for the result

    Declaration

    Swift

    public let variations: [CIOResult]
  • Variations map for the result

    Declaration

    Swift

    public let variationsMap: Any
  • Additional metadata

    Declaration

    Swift

    public let json: JSONObject
  • The underlying recommendations strategy for the result (only applies to recommendations)

    Declaration

    Swift

    public let strategy: CIORecommendationsStrategy
  • Labels associated with the result item

    Declaration

    Swift

    public let labels: [String : Bool]
  • Create a result object

    Declaration

    Swift

    public init?(json: JSONObject)

    Parameters

    json

    JSON data from the server response

  • id

    Declaration

    Swift

    public var id: String { get }