FeedbackEvent
public struct FeedbackEvent
Feedback event describing user interactions with the search results. The client application can report these events back to the search service to be used for analyzing and improving the search service.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Construct a FeedbackEvent.
Declaration
Swift
public init(sessionID: UUID, type: FeedbackEventType, resultID: FeedbackResultID, position: Int, actionTime: Date)Parameters
sessionIDThe UUID used to identify a search session.
typeThe action taken by the user.
resultIDThe ID of the result chosen by the user.
positionThe position of the chosen result in the list shown to the user, starting with 0.
actionTimeThe time when the user interacted with the result.
-
The UUID used to identify a search session.
Declaration
Swift
public let sessionID: UUID -
The action taken by the user.
Declaration
Swift
public let type: FeedbackEventType -
The ID of the result chosen by the user.
Declaration
Swift
public let resultID: FeedbackResultID -
The position of the chosen result in the list shown to the user, starting with 0.
Declaration
Swift
public let position: Int -
The time when the user interacted with the result.
Declaration
Swift
public let actionTime: Date
FeedbackEvent Structure Reference