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.
-
Creates a new instance of
FeedbackEventwith given parameters.Declaration
Swift
public init(sessionID: UUID, type: FeedbackEventType, resultID: FeedbackResultID, position: Int, actionTime: Date)Parameters
sessionIDThe ID used to start the search session. It must be a valid UUID version 4.
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 ID used to start the search session. It must be a valid UUID version 4.
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
TomTom SDK for iOS (0.53.1)
FeedbackEvent