sendFeedback

abstract fun sendFeedback(feedbackEvent: FeedbackEvent): Result<Unit, SearchFailure>

Synchronously sends a feedback event for the search.

Return

The Result containing a Unit if the call succeeds, or a SearchFailure if it fails.

Parameters

feedbackEvent

The feedback event.


abstract fun sendFeedback(feedbackEvent: FeedbackEvent, callback: FeedbackCallback): Cancellable

Asynchronously sends a feedback event for the search.

Parameters

feedbackEvent

The feedback event.

callback

The FeedbackCallback invoked when the feedback operation has finished. It returns an error if the operation fails.